How do you provide configuration to MongoDB with Meteor?

﹥>﹥吖頭↗ 提交于 2019-12-31 04:10:10

问题


The meteor command both starts Meteor and MongoDB. How do I have meteor make the equivalent of this command when starting MongoDB mongod --profile=1 --slowms=1? Alternatively, is there a .conf file for mongo someplace that meteor uses?


回答1:


I had a quick search through the source and I don't see an obvious way that one could pass additional arguments to the mongod started by meteor in development mode. My recommendation would be to start a separate mongod on your system with those arguments and then tell meteor to use that one instead. For example:

$ MONGO_URL="mongodb://localhost:27017/myapp" meteor


来源:https://stackoverflow.com/questions/21370759/how-do-you-provide-configuration-to-mongodb-with-meteor

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!