Fix alembic path in entrypoints for both Docker and dev
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 1m56s

In Docker images, alembic.ini is at /app/alembic.ini (no service subdir).
In dev, it's at /app/{service}/alembic.ini (bind-mounted). Now tries the
service dir first, falls back to current dir.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-26 12:13:03 +00:00
parent e65bd41ebe
commit 6f0965aa9c
6 changed files with 6 additions and 6 deletions

View File

@@ -36,7 +36,7 @@ conn.close()
" || echo "DB creation failed (non-fatal), continuing..."
echo "Running account Alembic migrations..."
(cd account && alembic upgrade head)
if [ -d account ]; then (cd account && alembic upgrade head); else alembic upgrade head; fi
fi
# Clear Redis page cache on deploy