How to set up separate test and development database in meteor How to set up separate test and development database in meteor mongodb mongodb

How to set up separate test and development database in meteor


You'll have to run two mongod processes e.g.

# Devmongod --port 27017 --dbpath .meteor/local/db_dev# Testingmongod --port 28017 --dbpath .meteor/local/db_test


[Edit] This should work. Using the leaderboard example project:

MONGO_URL="mongodb://127.0.0.1:27017/appname_dev" meteor run --port 3000MONGO_URL="mongodb://127.0.0.1:28017/appname_test" meteor run --port 4000

That will use separate databases.