deploy: run alembic as uwsgi user
This commit is contained in:
parent
6e5bf4ad8d
commit
b21eb4a1e0
1 changed files with 2 additions and 2 deletions
|
|
@ -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"'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue