From 83686b82d9a126374d3a36f3bb97a511bc11ef85 Mon Sep 17 00:00:00 2001 From: Matthias Luebken Date: Thu, 3 Jul 2014 10:04:11 +0200 Subject: [PATCH] - reading the right port in production - changed default back to development --- config/env/production.js | 4 +++- fig.yml | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) 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: