Skip to content

Instantly share code, notes, and snippets.

  • Star 0 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save ericpedia/8329415 to your computer and use it in GitHub Desktop.
# 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
# Response will be something like this:
# mongodb://
# The credentials will only last for a minute, so you've got to work quickly
# (or make a script for it, like the inverse version of!
# -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/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment