added INSTANCE_NAME env var
This commit is contained in:
@@ -20,7 +20,10 @@ var INSTANCE_NAME,
|
||||
|
||||
if(process.env.NODE_ENV === 'production')
|
||||
{
|
||||
INSTANCE_NAME = shelljs.exec('ec2metadata --instance-id', {silent: true}).output;
|
||||
if(process.env.INSTANCE_NAME !== "")
|
||||
{
|
||||
INSTANCE_NAME = shelljs.exec('ec2metadata --instance-id', {silent: true}).output;
|
||||
}
|
||||
|
||||
ETH_VERSION = shelljs.exec((process.env.ETH_IMPLEMENTATION === 'go' ? 'ethereum -version' : 'eth -V'), {silent: true}).output;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user