Insert data into remote MongoDB using meteor.js -


i inserting data local mongodb using

test.insert({"name" : "abc"});

so there way insert data remote mongodb using same code i.e. without changing code insert , retrieve remote mongodb.

thanks & regards,

deploy using this:

$ port=3000 mongo_url=mongodb://localhost:27017/myapp node bundle/main.js

http://docs.meteor.com/#deploying , section : running on own infrastructure


Comments

Popular posts from this blog

JQuery Autocomplete without using label, value, id -

c++ - Accessing inactive union member and undefined behavior? -

JAVA - what is the difference between void and boolean methods? -