Copying localhost MongoDB data to meteor servers -
so have been playing around meteor , mongodb , have working version set on localhost. unfortunately, when meteor deploy xxx.meteor.com doesn't deploy database well.
how do this?
meter deploy deploys fresh database. copy on data have use mongorestore local mongodb dump, can make mongodump (docs)
so first dump database somewhere
mongodump --host localhost:3002 get mongodb`s credentials running (in project dir):
meteor mongo myapp.meteor.com --url this give database details in form:
mongodb://username:password@host:port/databasename
then can plug these mongorestore (docs) , restore local database over
mongorestore -u username -p password -h host:port -d databasename ~/desktop/location_of_your_mongodb_dump
Comments
Post a Comment