-
Notifications
You must be signed in to change notification settings - Fork 11
/
install.sh
executable file
·30 lines (28 loc) · 1012 Bytes
/
install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
read -p "Register for a zoom api key https://www.zoomlogin.com/#page-blk-developers and please enter it here: " E_ZOOM_TOKEN
[ -n "${E_ZOOM_TOKEN}" ] && ZOOM_TOKEN=$E_ZOOM_TOKEN
git clone https://github.com/GoodDollar/GoodBootstrap
echo "Your zoomauth token: $ZOOM_TOKEN"
npm install -g truffle ganache-cli
npm install -g node-gyp
npm run master-submodules
npm i
cd packages/contracts
cp .env.dev .env
cd ../dapp
cp .env.dev .env
cd ../server
cp .env.dev .env
cd ../..
sed -i "" "s/ZOOM_TOKEN=/ZOOM_TOKEN=$ZOOM_TOKEN/" ./packages/server/.env
sed -i "" "s/REACT_APP_ZOOM_LICENSE_KEY=/REACT_APP_ZOOM_LICENSE_KEY=$ZOOM_TOKEN/" ./packages/dapp/.env
pm2 update
npx pm2 start ecosystem.config.js --only good-blockchain
sleep 30
npm run linkcontracts
npx pm2 start ecosystem.config.js --only good-gun
npx pm2 start ecosystem.config.js --only good-server
npx pm2 start ecosystem.config.js --only good-dapp
pm2 logs
# please wait contract deploying and after that please run
# npm run start:server
# npm run start:dapp