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

Popular posts from this blog

plot - Remove Objects from Legend When You Have Also Used Fit, Matlab -

java - Why does my date parsing return a weird date? -

Need help in packaging app using TideSDK on Windows -