Updates galore. Improved folder structure, componentized, and notifications upon completion.
This commit is contained in:
parent
b48784e2ad
commit
7e0502ca40
33 changed files with 3565 additions and 728 deletions
17
wsgi.py
17
wsgi.py
|
|
@ -1,18 +1,13 @@
|
|||
"""
|
||||
wsgi.py — Gunicorn entry point for VideoPress.
|
||||
|
||||
Start with:
|
||||
gunicorn -c gunicorn.conf.py wsgi:app
|
||||
Start the production server with:
|
||||
gunicorn -c gunicorn.conf.py wsgi:application
|
||||
|
||||
Or directly:
|
||||
gunicorn \
|
||||
--worker-class geventwebsocket.gunicorn.workers.GeventWebSocketWorker \
|
||||
--workers 1 \
|
||||
--bind 0.0.0.0:8080 \
|
||||
wsgi:app
|
||||
The variable must be named 'application' (or 'app') — Gunicorn looks for
|
||||
a WSGI callable at this module level.
|
||||
"""
|
||||
|
||||
from app import app # noqa: F401 — 'app' is the Flask application object
|
||||
from app import create_app
|
||||
|
||||
# Gunicorn imports this module and looks for a callable named 'app'.
|
||||
# Nothing else is needed here.
|
||||
application = create_app()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue