Skip to content

Instantly share code, notes, and snippets.

@achiko
Created July 14, 2013 13:49
Show Gist options
  • Save achiko/5994343 to your computer and use it in GitHub Desktop.
Save achiko/5994343 to your computer and use it in GitHub Desktop.
Heroku mongolab connect
// http://stackoverflow.com/questions/10406668/how-do-i-use-node-mongodb-native-to-connect-to-heroku
// You connect to your mongolab database (so you can't create a new "blog" database). process.env.MONGOLAB_URI includes the // database name as well. See your mongolab uri:
heroku config | grep MONGOLAB_URI
It looks like: mongodb://heroku_app123456:password@dbh73.mongolab.com:27737/heroku_app123456
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment