]> git.cworth.org Git - turbot/commitdiff
Fix turbot.wsgi to be able to find its environment variables
authorCarl Worth <cworth@cworth.org>
Sat, 26 Sep 2020 04:47:32 +0000 (21:47 -0700)
committerCarl Worth <cworth@cworth.org>
Sat, 26 Sep 2020 04:47:32 +0000 (21:47 -0700)
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

index 70a98656186869e91c4557d2b5f2f6983622506a..7817355aa2f619cc650b6b6002512ce69d05ccbc 100644 (file)
@@ -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