added INSTANCE_NAME env var
This commit is contained in:
parent
f5f6f20baf
commit
30d2609c3c
@ -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;
|
||||
}
|
||||
|
@ -26,6 +26,7 @@
|
||||
"exec_mode" : "fork_mode",
|
||||
"env":
|
||||
{
|
||||
"INSTANCE_NAME" : "",
|
||||
"NODE_ENV" : "production",
|
||||
"RPC_HOST" : "localhost",
|
||||
"RPC_PORT" : "8080",
|
||||
|
@ -26,6 +26,7 @@
|
||||
"exec_mode" : "fork_mode",
|
||||
"env":
|
||||
{
|
||||
"INSTANCE_NAME" : "",
|
||||
"NODE_ENV" : "production",
|
||||
"RPC_HOST" : "localhost",
|
||||
"RPC_PORT" : "8080",
|
||||
|
Loading…
Reference in New Issue
Block a user