fix: rebuild migrate image and run migrations before API restart
Ensures new Alembic revisions apply on deploy.
This commit is contained in:
1 parent
50b231caa6
commit
31d32ed1b4
1 file changed
+2
-2
@@ -49,10 +49,10 @@ mkdir -p "$(dirname "$LOG_FILE")"
|
||||
|
||||
log "Building API + worker ($GIT_SHA)"
|
||||
{
|
||||
$COMPOSE build --build-arg FORWARDER_GIT_SHA="$GIT_SHA" api worker
|
||||
$COMPOSE up -d --force-recreate api worker
|
||||
$COMPOSE build --build-arg FORWARDER_GIT_SHA="$GIT_SHA" api worker migrate
|
||||
log "Running migrations"
|
||||
$COMPOSE run --rm migrate
|
||||
$COMPOSE up -d --force-recreate api worker
|
||||
log "Building admin UI ($GIT_SHA)"
|
||||
$COMPOSE build --build-arg GIT_SHA="$GIT_SHA" web
|
||||
$COMPOSE up -d --force-recreate web
|
||||
|
||||
Reference in new issue
Block a user