Merge pull request #47 from cubedro/develop

Fixes
This commit is contained in:
Marian OANCΞA 2015-04-04 04:16:10 +03:00
commit 9470055e5d
3 changed files with 14 additions and 13 deletions

View File

@ -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.
```
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

View File

@ -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
[[ ! -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
sudo bash -c "cat > /etc/cron.hourly/ntpdate << EOF
#!/bin/sh
@ -54,3 +43,15 @@ sudo service ntp start
EOF"
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

View File

@ -4,5 +4,5 @@ if [[ -f /usr/bin/geth ]];
then
geth -rpc -rpcport "8080" -maxpeers "50" -loglevel "1"
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