Use NODE_ENV convention for node environment

This commit is contained in:
Ray Schamp 2015-10-01 09:50:43 -04:00
parent 8d574399e5
commit 66f654536b
2 changed files with 2 additions and 1 deletions

View file

@ -1,2 +1,3 @@
NODE_ENV=development
PROXY_HOST=http://localhost
PROXY_PORT=8080

View file

@ -24,7 +24,7 @@ for (var routeId in routes) {
}
// Bind proxies in development
if ( process.env.ENVIRONMENT == 'development' ) {
if ( process.env.NODE_ENV != 'production' ) {
var proxies = require('./proxies.json');
var url = require('url');
var proxyHost = process.env.PROXY_HOST || 'http://localhost';