deploy: run alembic as uwsgi user

This commit is contained in:
russell@unturf.com 2026-02-19 09:27:01 -05:00
parent 6e5bf4ad8d
commit b21eb4a1e0

View file

@ -20,7 +20,7 @@ my.makepostsell.com:
script:
# publish build to Salt Master
- sudo /opt/salt-call-state-highstate.sh
# run pending database migrations
- /opt/make_post_sell/env/bin/alembic -c /opt/make_post_sell/production.ini upgrade head
# run pending database migrations as the app user
- sudo -u uwsgi /opt/make_post_sell/env/bin/alembic -c /opt/make_post_sell/production.ini upgrade head
rules:
- if: '$CI_COMMIT_BRANCH == "master"'