From 188623e5748e46667e0fe88fa59c1c754b1a23d5 Mon Sep 17 00:00:00 2001 From: Keith Edmunds Date: Sun, 5 Mar 2023 14:59:00 +0000 Subject: [PATCH] Always treat running from mm dir as production --- .envrc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.envrc b/.envrc index d75bbff..b3f198b 100644 --- a/.envrc +++ b/.envrc @@ -5,7 +5,11 @@ export MAIL_SERVER="smtp.fastmail.com" export MAIL_USERNAME="kae@midnighthax.com" export MAIL_USE_TLS=True branch=$(git branch --show-current) -if on_git_branch master; then +# Always treat running from /home/kae/mm as production +if [ $(pwd) == /home/kae/mm ]; then + export MM_ENV="PRODUCTION" + export MM_DB="mysql+mysqldb://musicmuster:musicmuster@localhost/musicmuster_prod" +elif on_git_branch master; then export MM_ENV="PRODUCTION" export MM_DB="mysql+mysqldb://musicmuster:musicmuster@localhost/musicmuster_prod" else