diff --git a/config/env/production.js b/config/env/production.js index 26c97d775d..2de715fef1 100644 --- a/config/env/production.js +++ b/config/env/production.js @@ -1,7 +1,9 @@ 'use strict'; +var DB_HOST = process.env.DB_1_PORT_27017_TCP_ADDR || 'localhost'; + module.exports = { - db: process.env.MONGOHQ_URL || process.env.MONGOLAB_URI || 'mongodb://localhost/mean', + db: process.env.MONGOHQ_URL || process.env.MONGOLAB_URI || 'mongodb://' + DB_HOST + '/mean', assets: { lib: { css: [ diff --git a/fig.yml b/fig.yml index ba9a926b97..4726a15100 100644 --- a/fig.yml +++ b/fig.yml @@ -5,7 +5,7 @@ web: ports: - "3000:3000" environment: - NODE_ENV: production + NODE_ENV: development db: image: mongo ports: