How to join stats.expanse.tech
LINUX-------------------------
FIRST STEP rebuild develop gexp
cd go-expanse
git checkout develop
git pull
make gexp
SECOND STEP git e.n.i.a set it up then run it
git clone https://github.com/expanse-org/eth-net-intelligence-api
cd eth-net-intelligence-api
npm install
sudo npm install -g pm2
nano app.json
Fill in
- instance name,
- contact details (email, skype, a nice message)
- WS_SECRET you will need to ask in the slack chat room
[
{
"name" : "node-app",
"script" : "app.js",
"log_date_format" : "YYYY-MM-DD HH:mm Z",
"merge_logs" : false,
"watch" : false,
"max_restarts" : 10,
"exec_interpreter" : "node",
"exec_mode" : "fork_mode",
"env":
{
"NODE_ENV" : "production",
"RPC_HOST" : "localhost",
"RPC_PORT" : "9656",
"LISTENING_PORT" : "42786",
"INSTANCE_NAME" : "",
"CONTACT_DETAILS" : "",
"WS_SERVER" : "ws://stats.expanse.tech",
"WS_SECRET" : "ask-in-slack-chat",
"VERBOSITY" : 2
}
}
]
Once those details are set in, save and exit
LAST STEP run the app
pm2 start app.json
to see the logs type
pm2 logs
to stop pm2
pm2 stop node-app