Skip to content

Commit

Permalink
Support configuring network via env var
Browse files Browse the repository at this point in the history
  • Loading branch information
leighmcculloch committed Dec 22, 2023
1 parent ff3dd50 commit 3a81b95
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions start
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export PGDATA="$PGHOME/data"
export PGUSER="stellar"
export PGPORT=5432

: "${NETWORK:=testnet}"
: "${ENABLE_LOGS:=false}"
: "${ENABLE_SOROBAN_RPC:=false}"
: "${ENABLE_SOROBAN_DIAGNOSTIC_EVENTS:=false}"
Expand Down Expand Up @@ -163,11 +164,6 @@ function process_args() {
esac
done

# TODO: ask for what network to use
if [ -z "$NETWORK" ]; then
NETWORK="testnet"
fi

case "$NETWORK" in
testnet)
export NETWORK_PASSPHRASE="Test SDF Network ; September 2015"
Expand Down

0 comments on commit 3a81b95

Please sign in to comment.