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

javascript - backbone.js Collection.add() doesn't `construct` (`initialize`) an object -

php - Get uncommon values from two or more arrays -

Adding duplicate array rows in Php -