1
0
mirror of https://github.com/romanz/electrs.git synced 2024-11-19 09:54:09 +01:00
electrs/server.sh
Roman Zeyde ca93d3c75c Fix process-related metrics collection feature
Previously, it wasn't enabled when building with:
```
cargo build --all --features "prometheus/process" --release
```
2021-10-05 13:14:56 +03:00

16 lines
287 B
Bash
Executable File

#!/bin/bash
set -eux
cd `dirname $0`
cargo fmt --all
cargo build --all --features "metrics_process" --release
NETWORK=$1
shift
DB=./db
export RUST_LOG=${RUST_LOG-electrs=INFO}
target/release/electrs --network $NETWORK --db-dir $DB --daemon-dir $HOME/.bitcoin $*
# use SIGINT to quit