diff --git a/server.js b/server.js index ba5e71a5d..57fc56fe2 100644 --- a/server.js +++ b/server.js @@ -9,7 +9,8 @@ var bodyParser = require('body-parser'); var methodOverride = require('method-override'); // configuration =============================================================== -mongoose.connect(database.localUrl); // Connect to local MongoDB instance. A remoteUrl is also available (modulus.io) +#mongoose.connect(database.localUrl); // Connect to local MongoDB instance. A remoteUrl is also available (modulus.io) +mongoose.connect(process.env.CUSTOMCONNSTR_myConnectionString || database.localUrl); app.use(express.static('./public')); // set the static files location /public/img will be /img for users app.use(morgan('dev')); // log every request to the console