1

I found a few posts on stackoverflow with the same question but i do not understand what to do - and if i understood it it does not work for me.

Maybe its important to know tht i am using Windows.

The Problem:

I develope an meteorJs App on my local machine. Now i have a external mongoDB host and i want to connect my Application to this host, so the data for the collection in my app will be get from the external database.

The mongoDb host give me a link like this:

mongodb://.....:[email protected]/my_db_name

So i have the link. And now ? Is there any JavaScript file i can include to my /server dir to define the mongoDb Url ?

2
  • 1
    Check this post out: <stackoverflow.com/questions/20535755/…> The answer contains an option to connect to a custom mongodb connection. Commented Mar 15, 2014 at 21:47
  • This looks interesting. i will test it. Commented Mar 15, 2014 at 21:52

1 Answer 1

1

You should set the MONGO_URL environment variable as described in the deployment section of the documentation. So in your case you can start meteor as follows, or set the environment variable in some other way first before starting meteor:

MONGO_URL=mongodb://.....:[email protected]/my_db_name meteor $@
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.