0

A Meteor server code uses Accounts-ui package gets started like this:

appDir$ MONGO_URL=mongodb://username:password@cloud-host-url meteor

After creating the account, the user document fails to show up in the mongodb on the cloud-host but shows up in the local mongodb copy.
How can I correctly use the cloud mongodb?

1 Answer 1

1

I think the problem is how you set your MONGO_URL, try this in your CLI:

export MONGO_URL=mongodb://username:password@mongo_link && meteor

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

9 Comments

I tried that for no avail. The Accounts-ui still created the user in the local mongodb and not the mongodb on the cloud as referenced to in the export EnvVar.
Could you try create another collection and insert some documents to see where they are created? localhost db or cloud db
the newly created collection is found in the local db and not the cloud db.
hmm? check you mongo url, is it in this format: mongodb://<USER>:<PASSWORD>@<SERVER>:<PORT>/<DB>
yes, it is the exact copy from the settings.json MONGO_URL EV. at the end of it after the <DB> there is ?ssl=true&replicaSet=Cluster0-shard-0&authSource=admin
|

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.