fix(seed): never run the demo seed as part of a deploy
CI / build (push) Has been cancelled

The migrate task chained db:seed, so every production deploy inserted demo
users, duplicate Sunday templates and 45 fake assignments, and its unconditional
assignment delete wiped real schedule data. Migrations now run alone, and the
seed aborts when the database already holds non-seed users unless SEED_FORCE=1
is set for a throwaway database.

🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
This commit is contained in:
2026-11-22 21:34:02 +00:00
parent ade21425d4
commit f71952f838
3 changed files with 35 additions and 7 deletions
+1 -1
View File
@@ -29,7 +29,7 @@ RUN pnpm build
# ---------------------------------------------------------------------------
FROM builder AS tools
ENV NODE_ENV=development
CMD ["sh", "-c", "pnpm db:migrate && pnpm db:seed"]
CMD ["pnpm", "db:migrate"]
FROM base AS runner
WORKDIR /app