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 68664968da
commit c732f2d423
No known key found for this signature in database
GPG Key ID: A394E332255A6173

View File

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