19 lines
389 B
Bash
19 lines
389 B
Bash
|
#!/bin/sh -e
|
||
|
|
||
|
echo "Applying database migrations"
|
||
|
python -m hub migrate
|
||
|
|
||
|
echo "Starting Caddy"
|
||
|
caddy start --config /etc/caddy/Caddyfile
|
||
|
|
||
|
echo "Starting Gunicorn"
|
||
|
exec \
|
||
|
gunicorn \
|
||
|
-w 4 \
|
||
|
--access-logfile None \
|
||
|
--error-log - \
|
||
|
--capture-output \
|
||
|
--pythonpath /app/.venv/lib/python3.13/site-packages/ \
|
||
|
--bind unix:/run/gunicorn.sock \
|
||
|
hub.wsgi:application
|