From 64392b1eeda186aabae12742aedde1f0c5804e6f Mon Sep 17 00:00:00 2001 From: Liran Tal Date: Sun, 31 Jul 2016 13:34:04 +0300 Subject: [PATCH] fix(config): updating environment variable name for mongodb with the new one for Heroku (#1413) --- config/env/development.js | 2 +- config/env/production.js | 2 +- config/env/test.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/config/env/development.js b/config/env/development.js index 8b5fe26947..74526e5335 100644 --- a/config/env/development.js +++ b/config/env/development.js @@ -4,7 +4,7 @@ var defaultEnvConfig = require('./default'); module.exports = { db: { - uri: process.env.MONGOHQ_URL || process.env.MONGOLAB_URI || 'mongodb://' + (process.env.DB_1_PORT_27017_TCP_ADDR || 'localhost') + '/mean-dev', + uri: process.env.MONGOHQ_URL || process.env.MONGODB_URI || 'mongodb://' + (process.env.DB_1_PORT_27017_TCP_ADDR || 'localhost') + '/mean-dev', options: { user: '', pass: '' diff --git a/config/env/production.js b/config/env/production.js index c819650cb8..40d80d32a8 100644 --- a/config/env/production.js +++ b/config/env/production.js @@ -11,7 +11,7 @@ module.exports = { // Binding to 127.0.0.1 is safer in production. host: process.env.HOST || '0.0.0.0', db: { - uri: process.env.MONGOHQ_URL || process.env.MONGOLAB_URI || 'mongodb://' + (process.env.DB_1_PORT_27017_TCP_ADDR || 'localhost') + '/mean', + uri: process.env.MONGOHQ_URL || process.env.MONGODB_URI || 'mongodb://' + (process.env.DB_1_PORT_27017_TCP_ADDR || 'localhost') + '/mean', options: { user: '', pass: '' diff --git a/config/env/test.js b/config/env/test.js index 8fdabb16c5..d8b0e80a2a 100644 --- a/config/env/test.js +++ b/config/env/test.js @@ -4,7 +4,7 @@ var defaultEnvConfig = require('./default'); module.exports = { db: { - uri: process.env.MONGOHQ_URL || process.env.MONGOLAB_URI || 'mongodb://' + (process.env.DB_1_PORT_27017_TCP_ADDR || 'localhost') + '/mean-test', + uri: process.env.MONGOHQ_URL || process.env.MONGODB_URI || 'mongodb://' + (process.env.DB_1_PORT_27017_TCP_ADDR || 'localhost') + '/mean-test', options: { user: '', pass: ''