aboutsummaryrefslogtreecommitdiff
path: root/web/app.js
diff options
context:
space:
mode:
authorKumar Damani <kumar.damani@mail.utoronto.ca>2019-04-23 03:58:44 +0000
committerKumar Damani <kumar.damani@mail.utoronto.ca>2019-04-23 03:58:44 +0000
commitf269caf1eb36c43269d92c89b7f0b0bafb88d572 (patch)
treea8a37b333e84e39365a57e36acaf64f4dbcdc8e3 /web/app.js
parent9d6e8a3c0dcbd7854eb35b5aad1d9b6fb58b6056 (diff)
switched tabs to 2 spaces
Diffstat (limited to 'web/app.js')
-rw-r--r--web/app.js20
1 files changed, 10 insertions, 10 deletions
diff --git a/web/app.js b/web/app.js
index d2831a9..fc2da3c 100644
--- a/web/app.js
+++ b/web/app.js
@@ -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);