Minor tweaks to production, use git pull --rebase, only build 1 frontend

This commit is contained in:
wiz
2020-07-25 01:45:30 +09:00
parent 77dacfdb6e
commit d1cbb6446c
3 changed files with 18 additions and 9 deletions

View File

@@ -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