diff --git a/bin/build.sh b/bin/build.sh index ccd801b..97965d7 100644 --- a/bin/build.sh +++ b/bin/build.sh @@ -48,14 +48,15 @@ sudo apt-get -y install cloud-utils # add node service cd ~/bin + +export EC2_INSTANCE_ID=$(ec2metadata --instance-id) +export ETH_VERSION=$(./eth -V) + [ ! -d "www" ] && git clone https://github.com/cubedro/eth-net-intelligence-api www cd www sudo npm install sudo npm install pm2 -g -export EC2_INSTANCE_ID=$(ec2metadata --instance-id) -export ETH_VERSION=$(eth -V) - # pm2 start processes.json # pm2 startup ubuntu # pm3 save \ No newline at end of file