如何使用Meteor为MongoDB提供配置? [英] How do you provide configuration to MongoDB with Meteor?

查看:90
本文介绍了如何使用Meteor为MongoDB提供配置?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆