How do I use an existing MongoDB in a Meteor project?

Drake Guan picture Drake Guan · May 14, 2012 · Viewed 68.9k times · Source

Let's say there is a running MongoDB server for a GUI client (by wxPython) for a while.

How could I connect my new Meteor project to my already existing MongoDB?

Answer

Dror picture Dror · Oct 21, 2012

Use the environment variable MONGO_URL. Something like:

export MONGO_URL=mongodb://localhost:27017/your_db

Replace your_db with meteor or whatever db you want to use.