From 4dc7e35e7aa542243c9beed5c6a2a5fc07836de9 Mon Sep 17 00:00:00 2001 From: Peter Bex Date: Sun, 19 Mar 2023 10:50:55 +0100 Subject: Add ability to customize envrc settings via .envr.local This allows, for example, to easily run a different major Postgres version. --- .envrc | 2 ++ 1 file changed, 2 insertions(+) (limited to '.envrc') 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}" -- cgit v1.2.3