Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist

How to upload local db to meteor app

View how_to_upload_local_db_to_meteor_app.sh
1 2 3 4 5 6 7 8 9 10
# How to upload local db to meteor:
 
# -h = host, -d = database name, -o = dump folder name
mongodump -h 127.0.0.1:3002 -d meteor -o meteor
 
# get meteor db url, username, and password
meteor mongo --url myapp.meteor.com
 
# -h = host, -d = database name (app domain), -p = password, meteor = the path to the dumped db folder name
mongorestore -u client -h production-db-a2.meteor.io.meteor.com:27017 -d myapp_meteor_com -p 'password' meteor/
Owner

And here's how to dump the remote meteor db so you can import to your local db http://stackoverflow.com/a/12447710/559105

Hi I'm getting the following errors any ideas what I'm doing wrong

ERROR: ERROR: root directory must be a dump of a single database
ERROR: when specifying a db name with --db

Very helpful ! Please update the port to 3001 as meteor mongodb is exposed from there now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.