nix: PGRST_DB_URI preference for tmp db replica
When using `postgrest-with-postgresql-* --replica`, the PGRST_DB_URI will set the replica host as preference. This to be able to run quick manual tests with postgrest running on a replica.
This commit is contained in:
committed by
Steve Chavez
parent
ea4d1596b7
commit
aa75412932
@@ -106,6 +106,7 @@ let
|
||||
|
||||
export PGREPLICAHOST="$replica_host"
|
||||
export PGREPLICASLOT="$replica_slot"
|
||||
export PGRST_DB_URI="postgres:///$PGDATABASE?host=$PGREPLICAHOST,$PGHOST"
|
||||
fi
|
||||
|
||||
# shellcheck disable=SC2317
|
||||
|
||||
Reference in New Issue
Block a user