fix: change directory before running alembic upgrade in deploy script to avoid pyproject.toml permission issues

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

View file

@ -144,10 +144,10 @@ run_left4me_with_env env \
JOB_WORKER_ENABLED=false \
/opt/left4me/.venv/bin/python -c "from l4d2web.app import create_app; create_app()"
run_left4me_with_env env \
run_as_left4me sh -c "cd /opt/left4me/l4d2web && env \
JOB_WORKER_ENABLED=false \
PYTHONPATH=/opt/left4me \
/opt/left4me/.venv/bin/alembic -c /opt/left4me/l4d2web/alembic.ini upgrade head
/opt/left4me/.venv/bin/alembic -c /opt/left4me/l4d2web/alembic.ini upgrade head"
if [ -f "$remote_tmp/admin_username" ] && [ -f "$remote_tmp/admin_password" ]; then
LEFT4ME_ADMIN_USERNAME=$(cat "$remote_tmp/admin_username")