问题
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