From e55812506b6748c1b2c4ca3af4ad068d6df75366 Mon Sep 17 00:00:00 2001 From: rajat bhasin Date: Mon, 14 May 2018 18:22:32 +0530 Subject: [PATCH] cosmos connection cosmos connection --- server.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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