Reputation: 161
I am inserting data into local MongoDB using
test.insert({"name" : "abc"});
So is there any way to insert data into remote MongoDB using the same code i.e. without much changing the code to insert and retrieve from remote MongoDB.
Thanks & Regards,
Upvotes: 2
Views: 1877
Reputation: 610
deploy using this:
$ PORT=3000 MONGO_URL=mongodb://localhost:27017/myapp node bundle/main.js
http://docs.meteor.com/#deploying , section : Running on your own infrastructure
Upvotes: 1