allow configuration by environment variables

This commit is contained in:
Josh Chisholm
2016-03-17 07:57:10 +00:00
committed by Rowan Manning
parent 1358d0f38d
commit 08a1a9060f
2 changed files with 40 additions and 1 deletions

View File

@@ -16,7 +16,7 @@
'use strict';
var chalk = require('chalk');
var config = require('./config/' + (process.env.NODE_ENV || 'development') + '.json');
var config = require('./config');
process.on('SIGINT', function() {
console.log('\nGracefully shutting down from SIGINT (Ctrl-C)');