meteor MongoDB Connect Your Local Meteor App to an Alternative Mongo DB


Example

Set the MONGO_URL environment variable before starting your local Meteor app.

Linux/MacOS Example:

MONGO_URL="mongodb://some-mongo-host.com:1234/mydatabase" meteor

or

export MONGO_URL="mongodb://some-mongo-host.com:1234/mydatabase" 
meteor

Windows Example

Note: don't use "

set MONGO_URL=mongodb://some-mongo-host.com:1234/mydatabase
meteor

NPM

//package.json

"scripts": {
    "start": "MONGO_URL=mongodb://some-mongo-host.com:1234/mydatabase meteor"
}

$ npm start