diff --git a/lib/node.js b/lib/node.js index cab4ef1..f853035 100644 --- a/lib/node.js +++ b/lib/node.js @@ -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; } diff --git a/processes-go.json b/processes-go.json index 1c6eeba..eb1cb39 100644 --- a/processes-go.json +++ b/processes-go.json @@ -26,6 +26,7 @@ "exec_mode" : "fork_mode", "env": { + "INSTANCE_NAME" : "", "NODE_ENV" : "production", "RPC_HOST" : "localhost", "RPC_PORT" : "8080", diff --git a/processes.json b/processes.json index 6c2bf39..e3c186e 100644 --- a/processes.json +++ b/processes.json @@ -26,6 +26,7 @@ "exec_mode" : "fork_mode", "env": { + "INSTANCE_NAME" : "", "NODE_ENV" : "production", "RPC_HOST" : "localhost", "RPC_PORT" : "8080",