From 3c8f5910dfdba901ec06bcb14281ce39d7242816 Mon Sep 17 00:00:00 2001 From: Keith Edmunds Date: Sat, 14 Dec 2024 11:56:37 +0000 Subject: [PATCH] Add notes to .envrc --- .envrc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.envrc b/.envrc index 514e4a6..6ab2670 100644 --- a/.envrc +++ b/.envrc @@ -13,6 +13,8 @@ branch=$(git branch --show-current) if [ $(pwd) == /home/kae/mm ]; then export MM_ENV="PRODUCTION" export DATABASE_URL="mysql+mysqldb://musicmuster:musicmuster@localhost/musicmuster_prod" +# on_git_branch is a direnv directive +# See https://github.com/direnv/direnv/blob/master/man/direnv-stdlib.1.md elif on_git_branch master; then export MM_ENV="PRODUCTION" export DATABASE_URL="mysql+mysqldb://musicmuster:musicmuster@localhost/musicmuster_prod"