Last active
August 29, 2015 14:23
-
-
Save mjhea0/e9024cd25ec60a149028 to your computer and use it in GitHub Desktop.
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
var uri = process.env.MONGOLAB_URI || 'mongodb://localhost/test'; | |
mongoose.connect(uri, function (err, res) { | |
if (err) { | |
console.log(err); | |
} | |
console.log ('success!'); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment