2018-06-30 19:59:10 +00:00
|
|
|
'''
|
|
|
|
This file is the WSGI entrypoint for remote / production use.
|
|
|
|
|
|
|
|
If you are using Gunicorn, for example:
|
2020-09-30 22:05:44 +00:00
|
|
|
gunicorn etiquette_flask_prod:site --bind "0.0.0.0:PORT" --access-logfile "-"
|
2018-06-30 19:59:10 +00:00
|
|
|
'''
|
2020-05-17 23:33:40 +00:00
|
|
|
import werkzeug.middleware.proxy_fix
|
2018-04-16 03:34:03 +00:00
|
|
|
|
2021-05-17 04:08:51 +00:00
|
|
|
from voussoirkit import pathclass
|
|
|
|
|
2018-11-05 03:45:23 +00:00
|
|
|
import backend
|
2018-04-16 03:34:03 +00:00
|
|
|
|
2020-05-17 23:33:40 +00:00
|
|
|
backend.site.wsgi_app = werkzeug.middleware.proxy_fix.ProxyFix(backend.site.wsgi_app)
|
2018-04-16 03:34:03 +00:00
|
|
|
|
2018-11-05 03:45:23 +00:00
|
|
|
site = backend.site
|
2021-01-19 23:49:28 +00:00
|
|
|
site.debug = False
|
2020-10-02 02:43:06 +00:00
|
|
|
|
2021-05-17 04:08:51 +00:00
|
|
|
backend.common.init_photodb(path=pathclass.cwd())
|