From c732f2d423eadfc16e1b415b29b261854679afe6 Mon Sep 17 00:00:00 2001 From: wiz Date: Tue, 26 May 2020 21:33:50 +0900 Subject: [PATCH] Always run "npm install" when upgrading, only build mainnet frontend --- production/mempool-upgrade-all | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/production/mempool-upgrade-all b/production/mempool-upgrade-all index 06ee9e031..8c6a01327 100755 --- a/production/mempool-upgrade-all +++ b/production/mempool-upgrade-all @@ -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