From ebf712a209964b7a55736f4281a12d05bff3ab35 Mon Sep 17 00:00:00 2001 From: Kumar Damani Date: Wed, 13 Mar 2019 13:13:20 -0400 Subject: updated proddb config --- web/app.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'web') diff --git a/web/app.js b/web/app.js index 9d6e9d0..6b81ea4 100644 --- a/web/app.js +++ b/web/app.js @@ -27,10 +27,9 @@ 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') { +} 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 -- cgit v1.2.3 From dadc8489761294dc67edc89d553395512c697c40 Mon Sep 17 00:00:00 2001 From: Kumar Damani Date: Wed, 13 Mar 2019 22:02:53 -0400 Subject: added evn urls for prod, and mobile --- web/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'web') diff --git a/web/app.js b/web/app.js index 6b81ea4..aa2e75b 100644 --- a/web/app.js +++ b/web/app.js @@ -26,7 +26,7 @@ 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' + // 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 -- cgit v1.2.3