Always run "npm install" when upgrading, only build mainnet frontend

This commit is contained in:
wiz 2020-05-26 21:33:50 +09:00
parent 3ef81b0092
commit f0de141a41

View File

@ -11,10 +11,17 @@ do
cd "$HOME/${site}" cd "$HOME/${site}"
git pull origin master git pull origin master
hash=$(git rev-parse HEAD) hash=$(git rev-parse HEAD)
cd "$HOME/${site}/frontend"
npm run build if [ "${site}" = "mainnet" ]
rsync -av ./dist/mempool/* "${HOME}/public_html/${site}/" then
cd "$HOME/${site}/frontend"
npm install
npm run build
rsync -av ./dist/mempool/* "${HOME}/public_html/${site}/"
fi
cd "$HOME/${site}/backend" cd "$HOME/${site}/backend"
npm install
npm run build npm run build
done done