How to upload local db to meteor app

  • Download Gist
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 -d meteor -o meteor
# get meteor db url, username, and password
meteor mongo --url
# -h = host, -d = database name (app domain), -p = password, meteor = the path to the dumped db folder name
mongorestore -u client -h -d myapp_meteor_com -p 'password' meteor/

And here's how to dump the remote meteor db so you can import to your local db

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

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.