diff --git a/production/mempool-install-all b/production/mempool-install-all index a3ae02203..d35f1ade7 100755 --- a/production/mempool-install-all +++ b/production/mempool-install-all @@ -3,12 +3,19 @@ for site in mainnet liquid testnet bisq do git clone https://github.com/mempool/mempool "${HOME}/${site}" mkdir -p "${HOME}/public_html/${site}/" + cd "${HOME}/${site}/backend/" cp "../production/mempool-config.${site}.json" "mempool-config.json" touch cache.json + npm install npm run build - cd "${HOME}/${site}/frontend/" - npm install - npm run build + + if [ "${site}" = "mainnet" ] + then + cd "${HOME}/${site}/frontend/" + npm install + npm run build + rsync -av ./dist/mempool/* "${HOME}/public_html/${site}/" + fi done diff --git a/production/mempool-kill-all b/production/mempool-kill-all new file mode 100644 index 000000000..ae48552c2 --- /dev/null +++ b/production/mempool-kill-all @@ -0,0 +1,2 @@ +#!/usr/bin/env zsh +killall sh node diff --git a/production/mempool-upgrade-all b/production/mempool-upgrade-all index 0d1c56089..57bbbe2f6 100755 --- a/production/mempool-upgrade-all +++ b/production/mempool-upgrade-all @@ -7,21 +7,21 @@ touch $HOME/lock echo 'rebuilding mempool sites'|wall cd "$HOME/mempool" -git pull origin master +git pull --rebase origin master cd "$HOME/" for site in mainnet liquid testnet bisq do cd "$HOME/${site}" - git pull origin master + git pull --rebase origin master hash=$(git rev-parse HEAD) if [ "${site}" = "mainnet" ] then - cd "$HOME/${site}/frontend" - npm install - npm run build - rsync -av ./dist/mempool/* "${HOME}/public_html/${site}/" + cd "$HOME/${site}/frontend" + npm install + npm run build + rsync -av ./dist/mempool/* "${HOME}/public_html/${site}/" fi cd "$HOME/${site}/backend"