Improve the way prod imports flask backend.

This commit is contained in:
voussoir 2021-09-08 20:00:32 -07:00
parent e5c16c4ba1
commit d5f8b9254f
No known key found for this signature in database
GPG key ID: 5F7554F8C26DACCB
3 changed files with 7 additions and 2 deletions

View file

@ -104,7 +104,9 @@ In order to prevent the accidental creation of Etiquette databases, you must use
2. To run non-daemonized, on a specific port, with logging to the terminal, I use:
gunicorn etiquette_flask_prod:site --bind "0.0.0.0:PORT" --access-logfile "-"
```
~/cmd/python ~/cmd/gunicorn_py etiquette_flask.etiquette_flask_prod:site --bind "0.0.0.0:6667" --access-logfile "-" --access-logformat "%(h)s | %(t)s | %(r)s | %(s)s %(b)s"
```
</details>

View file

@ -0,0 +1,3 @@
from . import backend
from . import etiquette_flask_prod

View file

@ -8,7 +8,7 @@ import werkzeug.middleware.proxy_fix
from voussoirkit import pathclass
import backend
from etiquette_flask import backend
backend.site.wsgi_app = werkzeug.middleware.proxy_fix.ProxyFix(backend.site.wsgi_app)