如何使用Meteor为MongoDB提供配置? [英] How do you provide configuration to MongoDB with Meteor?
问题描述
meteor
命令均启动Meteor和MongoDB.启动MongoDB mongod --profile=1 --slowms=1
时,如何让meteor
等效于此命令?或者,是否有供流星使用的mongo的.conf文件?
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?
推荐答案
我在源代码中进行了快速搜索,但没有看到一种明显的方式可以将其他参数传递给开发中的流星开始的mongod
模式.我的建议是使用这些参数在您的系统上启动一个单独的mongod
,然后告诉流星改用该参数.例如:
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
这篇关于如何使用Meteor为MongoDB提供配置?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!