node.js - How to copy existing local database to Heroku? -


i've deployed node.js app heroku. next goal copy local mongo database can have initial data.

how can accomplish that? i've went through heroku docs , there nothing mentions that. on heroku using mlab mongodb add-on.

to restore mongodb mlab, need use mongo restore command issued on local dev system

mongorestore -h host.mlab.com:13024 -d databasename -u <user> -p <password> <input db directory> 

Comments

Popular posts from this blog

sql - invalid in the select list because it is not contained in either an aggregate function -

Angularjs unit testing - ng-disabled not working when adding text to textarea -

How to start daemon on android by adb -