Ethan Dalool
59cc76f8d9
I want to reduce some complexity around here, part of which is that launch imported entrypoint imported backend, all to do some proxy wrapping which isn't necessary for the dev case anyway. Less layers of wrapping and importing is good. Plus I think this naming is more clear.
13 lines
350 B
Python
13 lines
350 B
Python
'''
|
|
This file is the WSGI entrypoint for remote / production use.
|
|
|
|
If you are using Gunicorn, for example:
|
|
gunicorn etiquette_flask_prod:site --bind "0.0.0.0:PORT" --access-logfile "-"
|
|
'''
|
|
import werkzeug.middleware.proxy_fix
|
|
|
|
import backend
|
|
|
|
backend.site.wsgi_app = werkzeug.middleware.proxy_fix.ProxyFix(backend.site.wsgi_app)
|
|
|
|
site = backend.site
|