fix: load environment variables for alembic upgrade in deploy script to ensure database url is set properly
This commit is contained in:
parent
441c1db79b
commit
3809f85795
1 changed files with 1 additions and 1 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Reference in a new issue