mirror of
https://github.com/mempool/mempool.git
synced 2025-01-18 05:12:35 +01:00
Modify production startup scripts to support signet
This commit is contained in:
parent
32af9420dc
commit
7d858a8abd
21
production/electrs-start-signet
Executable file
21
production/electrs-start-signet
Executable 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
|
@ -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}/"
|
||||
|
@ -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'
|
||||
|
@ -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}"
|
||||
|
Loading…
Reference in New Issue
Block a user