Madhu
Madhu

Reputation: 121

Meteor.js on windows, how to connect to existing database

I am using meteor.js for one of my project, I have mongoDB already(existing from previous application) where am i supposed to change the setting to connect to existing database. Let me say, I am running on windows.

Upvotes: 2

Views: 2550

Answers (1)

Tarang
Tarang

Reputation: 75945

Do you mean a deployed project? Use the MONGO_URL environmental variable before you run your app.

set MONGO_URL=mongodb://localhost:27017/meteor

I'm not too sure about windows, but if you have trouble with this copy your mongo database into the .meteor/local/db folder of your app

Upvotes: 3

Related Questions