mirror of
https://github.com/mempool/mempool.git
synced 2024-11-20 10:21:52 +01:00
23 lines
588 B
Bash
Executable File
23 lines
588 B
Bash
Executable File
#!/usr/local/bin/zsh
|
|
export NVM_DIR="$HOME/.nvm"
|
|
source "$NVM_DIR/nvm.sh"
|
|
for site in mainnet liquid testnet bisq signet
|
|
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"
|
|
|
|
npm install
|
|
npm run build
|
|
|
|
if [ "${site}" = "mainnet" ]
|
|
then
|
|
cd "${HOME}/${site}/frontend/"
|
|
npm install
|
|
npm run build
|
|
rsync -av ./dist/mempool/browser/* "${HOME}/public_html/${site}/"
|
|
fi
|
|
done
|