This commit is contained in:
Tobias Brunner 2025-01-30 17:15:36 +01:00
parent 532a029e61
commit 561cf5764a
No known key found for this signature in database
3 changed files with 9 additions and 5 deletions

View file

@ -4,7 +4,7 @@
log {
output stderr
format console
level ERROR
level INFO
}
}

View file

@ -2,18 +2,22 @@
# Create required directories with appropriate permissions
mkdir -p /app/run/caddy /app/run/gunicorn
chmod -R g+w /app/run
# Set Caddy config location
export XDG_CONFIG_HOME="/app/config"
echo "Applying database migrations"
python -m hub migrate
echo "Starting Caddy"
caddy run --config /etc/caddy/Caddyfile &
exec caddy run --config /app/config/caddy/Caddyfile --adapter caddyfile 2>&1 &
echo "Starting Gunicorn"
exec \
gunicorn \
-w 4 \
--access-logfile None \
--access-logfile - \
--error-log - \
--capture-output \
--pythonpath /app/.venv/lib/python3.13/site-packages/ \