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