diff --git a/README.md b/README.md index 067af7e..32fa22d 100644 --- a/README.md +++ b/README.md @@ -28,7 +28,7 @@ Configure the app modifying [processes.json](/eth-net-intelligence-api/blob/mast "NODE_ENV" : "production", // tell the client we're in production environment "RPC_HOST" : "localhost", // eth JSON-RPC host "RPC_PORT" : "8080", // eth JSON-RPC port - "ETH_IMPLEMENTATION" : "Cpp", // eth implementation ("Cpp" or "Go") + "ETH_IMPLEMENTATION" : "cpp", // eth implementation: "cpp" or "go" "WS_SERVER" : "", // path to eth-netstats WebSockets api server "WS_SECRET" : "", // WebSockets api server secret used for login } diff --git a/lib/node.js b/lib/node.js index 98a0ecd..62edf95 100644 --- a/lib/node.js +++ b/lib/node.js @@ -22,7 +22,7 @@ if(process.env.NODE_ENV === 'production') { INSTANCE_NAME = shelljs.exec('ec2metadata --instance-id', {silent: true}).output; - if(ETH_IMPLEMENTATION === 'Go') + if(ETH_IMPLEMENTATION === 'go') { ETH_VERSION = shelljs.exec('ethereum -version', {silent: true}).output; } diff --git a/processes-go.json b/processes-go.json index 4555fca..1c6eeba 100644 --- a/processes-go.json +++ b/processes-go.json @@ -29,7 +29,7 @@ "NODE_ENV" : "production", "RPC_HOST" : "localhost", "RPC_PORT" : "8080", - "ETH_IMPLEMENTATION" : "Go", + "ETH_IMPLEMENTATION" : "go", "WS_SERVER" : "wss://eth-netstats.herokuapp.com", "WS_SECRET" : "eth-net-stats-has-a-secret", } diff --git a/processes.json b/processes.json index a8f5900..2785a99 100644 --- a/processes.json +++ b/processes.json @@ -29,7 +29,7 @@ "NODE_ENV" : "production", "RPC_HOST" : "localhost", "RPC_PORT" : "8080", - "ETH_IMPLEMENTATION" : "Cpp", + "ETH_IMPLEMENTATION" : "cpp", "WS_SERVER" : "wss://eth-netstats.herokuapp.com", "WS_SECRET" : "eth-net-stats-has-a-secret", }