Skip to content

Instantly share code, notes, and snippets.

@xinthink
Created April 16, 2013 11:28
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save xinthink/5395234 to your computer and use it in GitHub Desktop.
Save xinthink/5395234 to your computer and use it in GitHub Desktop.
Connect mongolab using mongo shell in a heroku app.
#!/bin/bash
mongoctl connect `heroku config | grep -Po '(?<=MONGOLAB_URI: ).+'`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment