Skip to content

Instantly share code, notes, and snippets.

@henryboldi
Created May 13, 2014 21:14
Show Gist options
  • Save henryboldi/86b996cdb0f8f78f34df to your computer and use it in GitHub Desktop.
Save henryboldi/86b996cdb0f8f78f34df to your computer and use it in GitHub Desktop.
if (environment === 'development') { db_connection = {
module : 'sails-mongo',
url: process.env.DB_URL,
schema: true
}} else if (environment === 'production'){ db_connection = {
module: 'sails-mongo',
url: 'mongodb://1hackerbracket1:[email protected]:10479/hackerbracket',
schema: true
}} else { db_connection = {
module : 'sails-mongo',
url: process.env.DB_URL,
schema: true
}}
module.exports = { db: db_connection };
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment