Created
July 14, 2013 13:49
-
-
Save achiko/5994343 to your computer and use it in GitHub Desktop.
Heroku mongolab connect
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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