commit
9470055e5d
@ -15,7 +15,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.
|
Fetch and run the build shell. This will install everything you need: latest cpp-ethereum - CLI (develop branch), node.js, npm, pm2.
|
||||||
|
|
||||||
```
|
```
|
||||||
curl https://raw.githubusercontent.com/cubedro/eth-net-intelligence-api/master/bin/build.sh | sh
|
bash <(curl https://raw.githubusercontent.com/cubedro/eth-net-intelligence-api/master/bin/build.sh)
|
||||||
```
|
```
|
||||||
|
|
||||||
## Configuration
|
## Configuration
|
||||||
|
23
bin/build.sh
23
bin/build.sh
@ -34,17 +34,6 @@ sudo apt-get install -y software-properties-common build-essential git unzip wge
|
|||||||
# add node symlink if it doesn't exist
|
# add node symlink if it doesn't exist
|
||||||
[[ ! -f /usr/bin/node ]] && sudo ln -s /usr/bin/nodejs /usr/bin/node
|
[[ ! -f /usr/bin/node ]] && sudo ln -s /usr/bin/nodejs /usr/bin/node
|
||||||
|
|
||||||
# add node service
|
|
||||||
cd ~/bin
|
|
||||||
|
|
||||||
[ ! -d "www" ] && git clone https://github.com/cubedro/eth-net-intelligence-api www
|
|
||||||
cd www
|
|
||||||
git pull
|
|
||||||
npm install
|
|
||||||
sudo npm install pm2 -g
|
|
||||||
|
|
||||||
[[ ! -f ~/bin/processes.json ]] && cp -b ./processes.json ./..
|
|
||||||
|
|
||||||
# set up time update cronjob
|
# set up time update cronjob
|
||||||
sudo bash -c "cat > /etc/cron.hourly/ntpdate << EOF
|
sudo bash -c "cat > /etc/cron.hourly/ntpdate << EOF
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
@ -54,3 +43,15 @@ sudo service ntp start
|
|||||||
EOF"
|
EOF"
|
||||||
|
|
||||||
sudo chmod 755 /etc/cron.hourly/ntpdate
|
sudo chmod 755 /etc/cron.hourly/ntpdate
|
||||||
|
|
||||||
|
# add node service
|
||||||
|
cd ~/bin
|
||||||
|
|
||||||
|
[ ! -d "www" ] && git clone https://github.com/cubedro/eth-net-intelligence-api www
|
||||||
|
cd www
|
||||||
|
git pull
|
||||||
|
|
||||||
|
[[ ! -f ~/bin/processes.json ]] && cp -b ./processes.json ./..
|
||||||
|
|
||||||
|
npm install
|
||||||
|
sudo npm install pm2 -g
|
||||||
|
@ -4,5 +4,5 @@ if [[ -f /usr/bin/geth ]];
|
|||||||
then
|
then
|
||||||
geth -rpc -rpcport "8080" -maxpeers "50" -loglevel "1"
|
geth -rpc -rpcport "8080" -maxpeers "50" -loglevel "1"
|
||||||
else
|
else
|
||||||
eth -b -x 50 -r 52.5.125.115 -p 30303 -m off -n off -v 0 -j
|
eth -b -x 50 -r 52.5.125.115 -p 30303 -m off -v 0 -j
|
||||||
fi
|
fi
|
Loading…
Reference in New Issue
Block a user