aboutsummaryrefslogtreecommitdiff
path: root/.envrc
diff options
context:
space:
mode:
authorPeter Bex <peter@more-magic.net>2023-03-19 10:50:55 +0100
committerPeter Bex <peter@more-magic.net>2023-03-19 10:50:55 +0100
commit4dc7e35e7aa542243c9beed5c6a2a5fc07836de9 (patch)
treef67968cfee99942a8f77770ab83756a9d417ff24 /.envrc
parent9d05c9ca73c2b501744d528475532ab728318bde (diff)
downloadppq-master.tar.gz
Add ability to customize envrc settings via .envr.localHEADmaster
This allows, for example, to easily run a different major Postgres version.
Diffstat (limited to '.envrc')
-rw-r--r--.envrc2
1 files changed, 2 insertions, 0 deletions
diff --git a/.envrc b/.envrc
index 015c979..6b47d35 100644
--- a/.envrc
+++ b/.envrc
@@ -3,6 +3,8 @@ export PPQ_POSTGRES_VERSION=15
export PPQ_POSTGRES_DIR=$(expand_path postgres)
export PPQ_POSTGRES_DATA_DIR=$(expand_path postgres/data)
+source_env_if_exists .envrc.local
+
# Settings for libpq-based clients and postgres itself
export PGDATA="${PPQ_POSTGRES_DATA_DIR}"
export PGHOST="${PPQ_POSTGRES_DATA_DIR}"