mcgraths
12/31/2014 - 3:36 PM

Node.js environment config and settings (static settings)

Node.js environment config and settings (static settings)

{
    "development": {
        "MONGO_URI": "mongodb://localhost/test",
        "MONGO_OPTIONS": { "db": { "safe": true } }
    },
    "production": {
        "MONGO_URI": "mongodb://localhost/production",
        "MONGO_OPTIONS": { "db": { "safe": true } }
    }
}
var config = require('./env.json')[process.env.NODE_ENV || 'development'];