How do you provide configuration to MongoDB with Meteor?

后端 未结 1 673
迷失自我
迷失自我 2021-01-24 02:29

The meteor command both starts Meteor and MongoDB. How do I have meteor make the equivalent of this command when starting MongoDB mongod --profil

相关标签:
1条回答
  • 2021-01-24 03:16

    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
    
    0 讨论(0)
提交回复
热议问题