etiquette/frontends/etiquette_flask/etiquette_flask_prod.py

17 lines
400 B
Python
Raw Normal View History

'''
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
site.debug = False
2020-10-02 02:43:06 +00:00
backend.common.init_photodb()