So I’m developing more than one meteor app, but I’ve developed a pattern in which I don’t use the bundled development mongo instance, but instead point my apps to a remote mongo database. Can each app have it’s own MONGO_URL – I don’t want to use the bundled mongo, but neither do I want all my meteor apps to share a global MONGO_URL.
you can always specify the environment variable before running the meteor command. i.e.
MONGO_URL=mongodb://localhost:27017/your_db meteor run
Would this work if I wanted to have number of meteor apps running simultaneously? Say I wanted to deploy 4 micro services each having its own database. How would I do that?
MONGO_URL=mongodb://localhost:27017/db_name meteor --port 4000
MONGO_URL=mongodb://localhost:27017/db_name3 meteor --port 5000
Then your apps would be on different db’s running simultaneously on ports 3000, 4000, and 5000