feat: compile and use seed.js for database seeding in entrypoint script
CI/CD / test-and-build (push) Waiting to run
CI/CD / deploy (push) Blocked by required conditions

This commit is contained in:
Najjar\NajjarV02
2026-04-15 10:46:42 +04:00
parent 61f1e0f589
commit 22387dbfe1
2 changed files with 10 additions and 2 deletions
+1 -1
View File
@@ -10,7 +10,7 @@ echo "→ Syncing database schema..."
/app/node_modules/.bin/prisma db push
echo "→ Seeding database (idempotent — skips existing records)..."
/app/node_modules/.bin/tsx /app/prisma/seed.ts
node /app/prisma/seed.js
echo "→ Starting Next.js on port ${PORT:-3000}..."
exec node /app/server.js