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

AbotX : How do you create a parallel crawler that stays on and can be added to at run time from new requests -

testing - Detect whether test has failed within fixture -

android - Create single AAR file from multiple modules using Gradle -