2

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,

2
  • Do you want to use a remote mongo instance to store the data from your meteor app? Or are you trying to make an app that accesses two different instances of mongodb, one local and one remote? Commented Jul 8, 2012 at 6:49
  • I want to insert data into remote MongoDB. Commented Jul 9, 2012 at 4:26

1 Answer 1

1

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

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.