From b21eb4a1e0640331ceae416cdbac0868580aa675 Mon Sep 17 00:00:00 2001 From: "russell@unturf.com" Date: Thu, 19 Feb 2026 09:27:01 -0500 Subject: [PATCH] deploy: run alembic as uwsgi user --- .gitlab-ci.deploy.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.deploy.yml b/.gitlab-ci.deploy.yml index 85d850c..7815618 100644 --- a/.gitlab-ci.deploy.yml +++ b/.gitlab-ci.deploy.yml @@ -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"'