Fix alembic path in entrypoints for both Docker and dev
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 1m56s
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:
@@ -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
|
||||
|
||||
@@ -36,7 +36,7 @@ conn.close()
|
||||
" || echo "DB creation failed (non-fatal), continuing..."
|
||||
|
||||
echo "Running blog Alembic migrations..."
|
||||
(cd blog && alembic upgrade head)
|
||||
if [ -d blog ]; then (cd blog && alembic upgrade head); else alembic upgrade head; fi
|
||||
fi
|
||||
|
||||
# Clear Redis page cache on deploy
|
||||
|
||||
@@ -36,7 +36,7 @@ conn.close()
|
||||
" || echo "DB creation failed (non-fatal), continuing..."
|
||||
|
||||
echo "Running cart Alembic migrations..."
|
||||
(cd cart && alembic upgrade head)
|
||||
if [ -d cart ]; then (cd cart && alembic upgrade head); else alembic upgrade head; fi
|
||||
fi
|
||||
|
||||
# Clear Redis page cache on deploy
|
||||
|
||||
@@ -36,7 +36,7 @@ conn.close()
|
||||
" || echo "DB creation failed (non-fatal), continuing..."
|
||||
|
||||
echo "Running events Alembic migrations..."
|
||||
(cd events && alembic upgrade head)
|
||||
if [ -d events ]; then (cd events && alembic upgrade head); else alembic upgrade head; fi
|
||||
fi
|
||||
|
||||
# Clear Redis page cache on deploy
|
||||
|
||||
@@ -36,7 +36,7 @@ conn.close()
|
||||
" || echo "DB creation failed (non-fatal), continuing..."
|
||||
|
||||
echo "Running federation Alembic migrations..."
|
||||
(cd federation && alembic upgrade head)
|
||||
if [ -d federation ]; then (cd federation && alembic upgrade head); else alembic upgrade head; fi
|
||||
fi
|
||||
|
||||
# Clear Redis page cache on deploy
|
||||
|
||||
@@ -36,7 +36,7 @@ conn.close()
|
||||
" || echo "DB creation failed (non-fatal), continuing..."
|
||||
|
||||
echo "Running market Alembic migrations..."
|
||||
(cd market && alembic upgrade head)
|
||||
if [ -d market ]; then (cd market && alembic upgrade head); else alembic upgrade head; fi
|
||||
fi
|
||||
|
||||
# Clear Redis page cache on deploy
|
||||
|
||||
Reference in New Issue
Block a user