fix: add db alteration deploy step to Logto entrypoint
Newer Logto versions require `npm run cli db alteration deploy` after seeding to apply schema migrations. Without this, Logto fails with "relation systems does not exist". Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -4,6 +4,9 @@ set -e
|
|||||||
echo "[entrypoint] Seeding Logto database..."
|
echo "[entrypoint] Seeding Logto database..."
|
||||||
npm run cli db seed -- --swe 2>/dev/null || true
|
npm run cli db seed -- --swe 2>/dev/null || true
|
||||||
|
|
||||||
|
echo "[entrypoint] Deploying database alterations..."
|
||||||
|
npm run cli db alteration deploy 2>/dev/null || true
|
||||||
|
|
||||||
echo "[entrypoint] Starting Logto..."
|
echo "[entrypoint] Starting Logto..."
|
||||||
npm start &
|
npm start &
|
||||||
LOGTO_PID=$!
|
LOGTO_PID=$!
|
||||||
|
|||||||
Reference in New Issue
Block a user