Skip to content
This repository has been archived by the owner on Aug 30, 2021. It is now read-only.

Commit

Permalink
- reading the right port in production
Browse files Browse the repository at this point in the history
- changed default back to development
  • Loading branch information
luebken committed Jul 3, 2014
1 parent 1bd958e commit 83686b8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion config/env/production.js
Original file line number Diff line number Diff line change
@@ -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: [
Expand Down
2 changes: 1 addition & 1 deletion fig.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ web:
ports:
- "3000:3000"
environment:
NODE_ENV: production
NODE_ENV: development
db:
image: mongo
ports:
Expand Down

0 comments on commit 83686b8

Please sign in to comment.