From 3e1aa7197b7c3cbfe5768d8bb148f93eef08fff9 Mon Sep 17 00:00:00 2001 From: giles Date: Wed, 11 Feb 2026 14:17:28 +0000 Subject: [PATCH] Fix alembic.ini missing + entrypoint CWD safety 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 --- entrypoint.sh | 2 +- shared | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index 208de79..685a882 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -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 diff --git a/shared b/shared index 9bc9f64..ddc66fb 160000 --- a/shared +++ b/shared @@ -1 +1 @@ -Subproject commit 9bc9f64dce76b52dfdacee11acaabb31f923c9f8 +Subproject commit ddc66fb1cf4ea0c7c23876659c8cad320c7e7766