diff options
| author | Kumar Damani <damani.kumar@gmail.com> | 2019-03-14 17:27:04 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-03-14 17:27:04 +0000 |
| commit | 9137b5aea8c1fbbfe24fa8a6d9beaf47a1d5e84b (patch) | |
| tree | 18fb6f35b4139ef96e1cab4e620b788619f737bf /web | |
| parent | 0473a9716e07dc8f9ee7d2190e5f8272473a2de9 (diff) | |
| parent | dadc8489761294dc67edc89d553395512c697c40 (diff) | |
Merge pull request #37 from csc301-winter-2019/setup-prod
Setup prod
Diffstat (limited to 'web')
| -rw-r--r-- | web/app.js | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -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 |
