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:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user