Change to gunicorn
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2023-01-07 21:09:47 +01:00
parent d029fda896
commit 2939b4a515
9 changed files with 124 additions and 16 deletions

View File

@ -1,11 +1,13 @@
#!/bin/bash
# Apply database migrations
set -euo pipefail
echo "Apply database migrations"
poetry run python src/web/manage.py migrate
echo "Collect static files"
poetry run python src/web/manage.py collectstatic
# Start server
echo "Starting server"
poetry run python src/web/manage.py runserver 0.0.0.0:8000
caddy run
cd src/web || exit
poetry run python -m gunicorn --bind 0.0.0.0:8001 web.asgi:application -k uvicorn.workers.UvicornWorker