From 0d43f13fdb24d1e06eb10900ec1e61aee99e718d Mon Sep 17 00:00:00 2001 From: cubedro Date: Mon, 6 Apr 2015 06:54:13 +0300 Subject: [PATCH] updated readme.md --- README.md | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index aff3276..b2d80a4 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ This is the backend service which runs along with the node for tracking the ethe Fetch and run the build shell. This will install everything you need: latest cpp-ethereum - CLI (develop branch), node.js, npm, pm2. -``` +```bash bash <(curl https://raw.githubusercontent.com/cubedro/eth-net-intelligence-api/master/bin/build.sh) ``` @@ -22,15 +22,15 @@ bash <(curl https://raw.githubusercontent.com/cubedro/eth-net-intelligence-api/m Configure the app modifying [processes.json](/eth-net-intelligence-api/blob/master/processes.json). Note that you have to modify the backup processes.json file located in `./bin/processes.json` (to allow you to set your env vars without being rewritten when updating). -``` +```json "env": { - "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 - "INSTANCE_NAME" : "", - "WS_SERVER" : "", // path to eth-netstats WebSockets api server - "WS_SECRET" : "", // WebSockets api server secret used for login + "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 + "INSTANCE_NAME" : "", + "WS_SERVER" : "", // path to eth-netstats WebSockets api server + "WS_SECRET" : "", // WebSockets api server secret used for login } ``` @@ -38,7 +38,7 @@ Configure the app modifying [processes.json](/eth-net-intelligence-api/blob/mast Run it using pm2: -``` +```bash cd ~/bin pm2 start processes.json ``` @@ -47,7 +47,7 @@ pm2 start processes.json To update the API client use the following commands: -``` +```bash pm2 kill cd ~/bin/www git pull