Skip to content

Commit

Permalink
feat(config): set default host/port from env vars
Browse files Browse the repository at this point in the history
This make it simpler to use Karma on Cloud9.
  • Loading branch information
vojtajina committed Dec 7, 2013
1 parent 7d2c577 commit 0a6a0ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ var pkg = JSON.parse(fs.readFileSync(__dirname + '/../package.json').toString())

exports.VERSION = pkg.version;

exports.DEFAULT_PORT = 9876;
exports.DEFAULT_HOSTNAME = 'localhost';
exports.DEFAULT_PORT = process.env.PORT || 9876;
exports.DEFAULT_HOSTNAME = process.env.IP || 'localhost';

// log levels
exports.LOG_DISABLE = 'OFF';
Expand Down

0 comments on commit 0a6a0ee

Please sign in to comment.