Skip to content

Commit

Permalink
target server application can find users database
Browse files Browse the repository at this point in the history
  • Loading branch information
louking committed Jun 23, 2022
1 parent be68310 commit 8e13fe2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion runningroutes.wsgi
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,10 @@ if False:
# from runningroutes import app as application
from runningroutes import create_app
from runningroutes.settings import Production
application = create_app(Production(configpath), configpath)
userconfigpath = os.path.join(os.path.dirname(thisdir), 'config', 'users.cfg')
# userconfigpath first so configpath can override
configfiles = [userconfigpath, configpath]
application = create_app(Production(configfiles), configfiles)

# see https://flask.palletsprojects.com/en/1.1.x/deploying/wsgi-standalone/#deploying-proxy-setups
from werkzeug.middleware.proxy_fix import ProxyFix
Expand Down

0 comments on commit 8e13fe2

Please sign in to comment.