2022-07-06 12:11:13 +02:00
|
|
|
#!/usr/bin/env zsh
|
2020-09-18 14:53:58 +02:00
|
|
|
export NVM_DIR="$HOME/.nvm"
|
|
|
|
source "$NVM_DIR/nvm.sh"
|
2023-08-25 16:34:50 +02:00
|
|
|
nvm use v20.5.1
|
2022-07-06 14:01:18 +02:00
|
|
|
|
2022-08-28 13:04:40 +02:00
|
|
|
# start all mempool backends that exist
|
2022-07-06 14:01:18 +02:00
|
|
|
for site in mainnet mainnet-lightning testnet testnet-lightning signet signet-lightning bisq liquid liquidtestnet;do
|
2021-02-24 18:38:38 +01:00
|
|
|
cd "${HOME}/${site}/backend/" && \
|
2022-08-28 13:04:40 +02:00
|
|
|
echo "starting mempool backend: ${site}" && \
|
2021-02-14 16:25:29 +01:00
|
|
|
screen -dmS "${site}" sh -c 'while true;do npm run start-production;sleep 1;done'
|
2020-05-25 11:42:00 +02:00
|
|
|
done
|
2022-08-28 13:04:40 +02:00
|
|
|
|
2023-08-17 11:38:12 +02:00
|
|
|
export DISPLAY=:0
|
|
|
|
screen -dmS x startx
|
|
|
|
sleep 3
|
2022-08-28 13:04:40 +02:00
|
|
|
|
2022-08-30 11:06:56 +02:00
|
|
|
# start unfurlers for each frontend
|
|
|
|
for site in mainnet liquid bisq;do
|
|
|
|
cd "$HOME/${site}/unfurler" && \
|
|
|
|
echo "starting mempool unfurler: ${site}" && \
|
|
|
|
screen -dmS "unfurler-${site}" sh -c 'while true;do npm run unfurler;sleep 2;done'
|
|
|
|
done
|
|
|
|
|
2022-08-28 13:04:40 +02:00
|
|
|
# start nginx warm cacher
|
|
|
|
for site in mainnet;do
|
|
|
|
echo "starting mempool cache warmer: ${site}"
|
2022-08-29 10:58:07 +02:00
|
|
|
screen -dmS "warmer-${site}" $HOME/mainnet/production/nginx-cache-warmer
|
2022-08-28 13:04:40 +02:00
|
|
|
done
|
|
|
|
|
|
|
|
exit 0
|