aboutsummaryrefslogtreecommitdiff
path: root/web/app.js
diff options
context:
space:
mode:
Diffstat (limited to 'web/app.js')
-rw-r--r--web/app.js7
1 files changed, 3 insertions, 4 deletions
diff --git a/web/app.js b/web/app.js
index 9d6e9d0..aa2e75b 100644
--- a/web/app.js
+++ b/web/app.js
@@ -26,11 +26,10 @@ var uri;
if (env === 'development') {
uri = 'mongodb://localhost:27017/helpthehome'
// use for small testing only if really necessary
- // uri = 'mongodb+srv://development:dreamteam@cluster0-krnr4.mongodb.net/helpthehome?retryWrites=true'
-} else if (env === 'qa') {
+ // uri = 'mongodb+srv://development:dreamteam@cluster0-krnr4.mongodb.net/helpthehome_devel?retryWrites=true'
+} else {
+ // for qa and production set it on heroku config vars
uri = process.env.MONGODB_URI
-} else if (env === 'production') {
- uri = ''
}
// Mongoose connection to MongoDB