diff options
| author | Kumar Damani <kumar.damani@mail.utoronto.ca> | 2019-04-23 03:58:44 +0000 |
|---|---|---|
| committer | Kumar Damani <kumar.damani@mail.utoronto.ca> | 2019-04-23 03:58:44 +0000 |
| commit | f269caf1eb36c43269d92c89b7f0b0bafb88d572 (patch) | |
| tree | a8a37b333e84e39365a57e36acaf64f4dbcdc8e3 /web/app.js | |
| parent | 9d6e8a3c0dcbd7854eb35b5aad1d9b6fb58b6056 (diff) | |
switched tabs to 2 spaces
Diffstat (limited to 'web/app.js')
| -rw-r--r-- | web/app.js | 20 |
1 files changed, 10 insertions, 10 deletions
@@ -24,21 +24,21 @@ app.use(require('./routes/sse')); var env = process.env.NODE_ENV || 'development'; var uri; if (env === 'development') { - uri = 'mongodb://localhost:27017/helpthehome' + uri = 'mongodb://localhost:27017/helpthehome' } else { - // for qa and production set it on heroku config vars - uri = process.env.MONGODB_URI + // for qa and production set it on heroku config vars + uri = process.env.MONGODB_URI } // Mongoose connection to MongoDB mongoose.connect(uri, { useNewUrlParser: true }, function (error) { - if (error) { - console.log(error); - console.log("App was not able to connect to the mongo server!"); - console.log("... double check that the mongo server is running locally"); - } else { - console.log(`connected to ${uri}`); - } + if (error) { + console.log(error); + console.log("App was not able to connect to the mongo server!"); + console.log("... double check that the mongo server is running locally"); + } else { + console.log(`connected to ${uri}`); + } }); app.use('/', indexRouter); |
