Fix alembic.ini missing + entrypoint CWD safety
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 2m13s

Update shared submodule (adds alembic.ini for migrations).
Use subshell for alembic so CWD is never affected by cd shared,
preventing cascading config path errors if migration fails.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
giles
2026-02-11 14:17:28 +00:00
parent 9b180b364b
commit 3e1aa7197b
2 changed files with 2 additions and 2 deletions

View File

@@ -13,7 +13,7 @@ fi
# Run DB migrations only if RUN_MIGRATIONS=true (blog service only)
if [[ "${RUN_MIGRATIONS:-}" == "true" ]]; then
echo "Running Alembic migrations..."
cd shared && alembic upgrade head && cd /app
(cd shared && alembic upgrade head)
fi
# Clear Redis page cache on deploy

2
shared

Submodule shared updated: 9bc9f64dce...ddc66fb1cf