Skip to content

Instantly share code, notes, and snippets.

@distransient
Created October 26, 2013 04:19
Show Gist options
  • Save distransient/7165230 to your computer and use it in GitHub Desktop.
Save distransient/7165230 to your computer and use it in GitHub Desktop.
MONGODB_URL = process.env.MONGODB_URL || 'mongodb://localhost/picalum'
mongoose.connect(MONGODB_URL, function(err) {
erlog.error(err, {
message: 'Upon attempting to connect to MongoDB server'
, success: 'Successfully connected to MongoDB server.'
})
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment