From d51d8d536e56d27fc6ed3c15db112ed07987525b Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Fri, 25 Sep 2020 21:47:32 -0700 Subject: [PATCH] Fix turbot.wsgi to be able to find its environment variables We can't rely on the current working directory of the Apache process, so we need to use an explicit path here in order to find our file with environment variables in it. --- turbot.wsgi.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/turbot.wsgi.in b/turbot.wsgi.in index 70a9865..7817355 100644 --- a/turbot.wsgi.in +++ b/turbot.wsgi.in @@ -2,6 +2,6 @@ import sys sys.path.insert(0, '${DEPLOY_DIR}') from dotenv import load_dotenv -load_dotenv('.turbot.env') +load_dotenv('${DEPLOY_DIR}/.turbot.env') from turbot import app as application -- 2.45.2