Dhiraj Powar
Dhiraj Powar

Reputation: 161

Insert data into remote MongoDB using meteor.js

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

Answers (1)

TarunG
TarunG

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

Related Questions