From: Carl Worth Date: Sat, 26 Sep 2020 04:47:32 +0000 (-0700) Subject: Fix turbot.wsgi to be able to find its environment variables X-Git-Url: https://git.cworth.org/git?a=commitdiff_plain;h=d51d8d536e56d27fc6ed3c15db112ed07987525b;p=turbot 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. --- 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