Modify production startup scripts to support signet

This commit is contained in:
wiz 2021-02-21 03:44:33 +09:00
parent 32af9420dc
commit 7d858a8abd
No known key found for this signature in database
GPG Key ID: A394E332255A6173
4 changed files with 24 additions and 3 deletions

21
production/electrs-start-signet Executable file
View File

@ -0,0 +1,21 @@
#!/usr/local/bin/zsh
cd /bitcoin/electrs
#source $HOME/.cargo/env
#export PATH=$HOME/.cargo/bin:$PATH
until false
do
cargo run \
--release \
--bin electrs \
-- \
-vv \
--network signet \
--db-dir /electrs \
--daemon-rpc-addr '127.0.0.1:38332' \
--daemon-dir /bitcoin \
--http-addr '[::]:3003' \
--cookie 'user:pass' \
--precache-scripts /bitcoin/electrs/contrib/popular-scripts.txt
sleep 1
done

View File

@ -1,7 +1,7 @@
#!/usr/local/bin/zsh
export NVM_DIR="$HOME/.nvm"
source "$NVM_DIR/nvm.sh"
for site in mainnet liquid testnet bisq
for site in mainnet liquid testnet bisq signet
do
git clone https://github.com/mempool/mempool "${HOME}/${site}"
mkdir -p "${HOME}/public_html/${site}/"

View File

@ -1,7 +1,7 @@
#!/usr/local/bin/zsh
export NVM_DIR="$HOME/.nvm"
source "$NVM_DIR/nvm.sh"
for site in mainnet liquid testnet bisq
for site in mainnet liquid testnet bisq signet
do
cd "${HOME}/${site}/backend/"
screen -dmS "${site}" sh -c 'while true;do npm run start-production;sleep 1;done'

View File

@ -24,7 +24,7 @@ git fetch "${REPO}"
git reset --hard "${REPO}/${TAG}"
cd "$HOME/"
for site in mainnet liquid testnet bisq
for site in mainnet liquid testnet bisq signet
do
cd "$HOME/${site}"
git fetch "${REPO}"