mirror of
https://github.com/mempool/mempool.git
synced 2024-11-20 02:11:49 +01:00
Always run "npm install" when upgrading, only build mainnet frontend
This commit is contained in:
parent
68664968da
commit
c732f2d423
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user