updated readme.md
This commit is contained in:
parent
76b80a3ddb
commit
0d43f13fdb
20
README.md
20
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
|
||||
|
Loading…
Reference in New Issue
Block a user