From f97e951d87205485aefa20f013ea1227d629409f Mon Sep 17 00:00:00 2001 From: hsiegeln <37154749+hsiegeln@users.noreply.github.com> Date: Mon, 13 Apr 2026 17:12:06 +0200 Subject: [PATCH] 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) --- docker/cameleer-logto/logto-entrypoint.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docker/cameleer-logto/logto-entrypoint.sh b/docker/cameleer-logto/logto-entrypoint.sh index 24a1589..7eb5a07 100644 --- a/docker/cameleer-logto/logto-entrypoint.sh +++ b/docker/cameleer-logto/logto-entrypoint.sh @@ -4,6 +4,9 @@ set -e echo "[entrypoint] Seeding Logto database..." 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..." npm start & LOGTO_PID=$!