Created
May 13, 2014 21:14
-
-
Save henryboldi/86b996cdb0f8f78f34df to your computer and use it in GitHub Desktop.
This file contains hidden or 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
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