Improve the way prod imports flask backend.
This commit is contained in:
parent
e5c16c4ba1
commit
d5f8b9254f
3 changed files with 7 additions and 2 deletions
|
@ -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>
|
||||
|
||||
|
|
3
frontends/etiquette_flask/__init__.py
Normal file
3
frontends/etiquette_flask/__init__.py
Normal file
|
@ -0,0 +1,3 @@
|
|||
from . import backend
|
||||
from . import etiquette_flask_prod
|
||||
|
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue