fix: cd to shared_lib for alembic (script_location is relative)
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 39s
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 39s
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)
|
# Run DB migrations only if RUN_MIGRATIONS=true (blog service only)
|
||||||
if [[ "${RUN_MIGRATIONS:-}" == "true" ]]; then
|
if [[ "${RUN_MIGRATIONS:-}" == "true" ]]; then
|
||||||
echo "Running Alembic migrations..."
|
echo "Running Alembic migrations..."
|
||||||
alembic -c shared_lib/alembic.ini upgrade head
|
cd shared_lib && alembic upgrade head && cd /app
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Clear Redis page cache on deploy
|
# Clear Redis page cache on deploy
|
||||||
|
|||||||
Reference in New Issue
Block a user