allow port config via env variable

This commit is contained in:
Manuel Aráoz 2014-09-16 01:21:04 -03:00
parent e3fd639b52
commit a3835e0e2b

View File

@ -32,6 +32,7 @@ if (process.env.INSIGHT_NETWORK === 'livenet') {
b_port = '18332';
p2p_port = '18333';
}
port = parseInt(process.env.INSIGHT_PORT) || port;
switch (process.env.NODE_ENV) {