Connect to a Mongolab Heroku DB
Add this to your ~/.bash_profile
function heroku_mongolab {
URI=`heroku config --app $1 | grep "MONGOLAB_URI:" | sed 's/MONGOLAB_URI://g'`
mongoctl connect $URI
}
Then use like this...
herokumongolab *appname*
It assumes you have mongoctl and the heroku toolbelt installed in your system.
Written by Raúl Raja
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Heroku
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#