fix: change directory before running alembic upgrade in deploy script to avoid pyproject.toml permission issues
This commit is contained in:
parent
fa566db820
commit
441c1db79b
1 changed files with 2 additions and 2 deletions
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Reference in a new issue