mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-26 17:16:11 -05:00
Use NODE_ENV convention for node environment
This commit is contained in:
parent
8d574399e5
commit
66f654536b
2 changed files with 2 additions and 1 deletions
|
@ -1,2 +1,3 @@
|
|||
NODE_ENV=development
|
||||
PROXY_HOST=http://localhost
|
||||
PROXY_PORT=8080
|
||||
|
|
|
@ -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';
|
||||
|
|
Loading…
Reference in a new issue