fix: load environment variables for alembic upgrade in deploy script to ensure database url is set properly

This commit is contained in:
mwiegand 2026-05-06 21:01:35 +02:00
parent 441c1db79b
commit 3809f85795
No known key found for this signature in database

View file

@ -144,7 +144,7 @@ run_left4me_with_env env \
JOB_WORKER_ENABLED=false \
/opt/left4me/.venv/bin/python -c "from l4d2web.app import create_app; create_app()"
run_as_left4me sh -c "cd /opt/left4me/l4d2web && env \
run_as_left4me sh -c "cd /opt/left4me/l4d2web && set -a; . /etc/left4me/host.env; . /etc/left4me/web.env; set +a; env \
JOB_WORKER_ENABLED=false \
PYTHONPATH=/opt/left4me \
/opt/left4me/.venv/bin/alembic -c /opt/left4me/l4d2web/alembic.ini upgrade head"