2020-05-25 11:42:00 +02:00
|
|
|
#!/usr/local/bin/zsh
|
2020-07-24 14:26:59 +02:00
|
|
|
for site in mainnet liquid testnet bisq
|
2020-05-25 11:42:00 +02:00
|
|
|
do
|
|
|
|
git clone https://github.com/mempool/mempool "${HOME}/${site}"
|
2020-05-25 13:58:46 +02:00
|
|
|
mkdir -p "${HOME}/public_html/${site}/"
|
2020-07-24 18:45:30 +02:00
|
|
|
|
2020-05-25 11:42:00 +02:00
|
|
|
cd "${HOME}/${site}/backend/"
|
|
|
|
cp "../production/mempool-config.${site}.json" "mempool-config.json"
|
2020-05-25 13:58:46 +02:00
|
|
|
touch cache.json
|
2020-07-24 18:45:30 +02:00
|
|
|
|
2020-05-25 11:42:00 +02:00
|
|
|
npm install
|
|
|
|
npm run build
|
2020-07-24 18:45:30 +02:00
|
|
|
|
|
|
|
if [ "${site}" = "mainnet" ]
|
|
|
|
then
|
|
|
|
cd "${HOME}/${site}/frontend/"
|
|
|
|
npm install
|
|
|
|
npm run build
|
|
|
|
rsync -av ./dist/mempool/* "${HOME}/public_html/${site}/"
|
|
|
|
fi
|
2020-05-25 11:42:00 +02:00
|
|
|
done
|