aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2019-09-21 11:28:24 +0100
committerChristopher Baines <mail@cbaines.net>2019-09-21 11:28:24 +0100
commitaecd23d599e882e0b6650a2d00e3159f9785b034 (patch)
tree375d7e15ea5fa16a00f9020e4af9a36a582d34ec
parent6a9f11fb94fbfd969396dd4d9f768a0c9ec67734 (diff)
downloaddata-service-aecd23d599e882e0b6650a2d00e3159f9785b034.tar
data-service-aecd23d599e882e0b6650a2d00e3159f9785b034.tar.gz
Add support for a .local.envrc file
As this is useful when setting custom configuration.
-rw-r--r--.envrc4
-rw-r--r--.gitignore2
2 files changed, 6 insertions, 0 deletions
diff --git a/.envrc b/.envrc
index b3c4959..1ace49a 100644
--- a/.envrc
+++ b/.envrc
@@ -3,3 +3,7 @@ use guix -l guix-dev.scm --ad-hoc postgresql
export GUILE_LOAD_COMPILED_PATH="$PWD:$GUILE_LOAD_COMPILED_PATH"
export GUILE_LOAD_PATH="$PWD:$GUILE_LOAD_PATH"
export PATH="$PWD/scripts:$PATH"
+
+if [ -f .local.envrc ]; then
+ source_env .local.envrc
+fi
diff --git a/.gitignore b/.gitignore
index 77ade4b..1a73968 100644
--- a/.gitignore
+++ b/.gitignore
@@ -21,3 +21,5 @@ scripts/guix-data-service-process-jobs
scripts/guix-data-service-query-build-servers
scripts/guix-data-service-process-branch-updated-email
pre-inst-env
+
+.local.envrc