How to set up separate test and development database in meteor
问题 I've written a few tests for my meteor app. As they have setup and teardown methods that remove all documents or populate with new ones, I'd like to run them on a database dedicated to testing. I notice the db is stored in .meteor/local/db . Ideally I'd like to have db_test and db_dev accessed form different ports. Is this possible? 回答1: You'll have to run two mongod processes e.g. # Dev mongod --port 27017 --dbpath .meteor/local/db_dev # Testing mongod --port 28017 --dbpath .meteor/local/db