Fix alembic.ini missing + entrypoint CWD safety
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 2m13s
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:
@@ -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
2
shared
Submodule shared updated: 9bc9f64dce...ddc66fb1cf
Reference in New Issue
Block a user