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

Commit

Permalink
checking for Env injected by fig/docker
Browse files Browse the repository at this point in the history
  • Loading branch information
luebken committed Jul 3, 2014
1 parent 83686b8 commit c918f93
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion config/env/test.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: 'mongodb://localhost/mean-test',
db: 'mongodb://' + DB_HOST + '/mean-test',
port: 3001,
app: {
title: 'MEAN.JS - Test Environment'
Expand Down

0 comments on commit c918f93

Please sign in to comment.