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
Post a Comment