Connect to a remote Mongodb instance with local meteor instance
Great for development. Say you want to share the database with someone else in a remote location.
Create a
package.jsonfile withnpm init, if you don't have one already.Enter and modify the following line in that file (replacing all the
<...>'s):
"scripts": {
"meteor": "MONGO_URL=mongodb://<USER>:<PASSWORD>@<SERVER>:<PORT>/<DB> meteor"
}For meteor to start using your remote MongoDB start meteor with
npm run meteorhttps://stackoverflow.com/questions/10588038/how-to-use-the-existing-mongodb-in-a-meteor-project