feat: update Dockerfile to include Prisma seed script and enhance entrypoint for seeding
feat: migrate middleware logic to new proxy.ts file for improved structure
This commit is contained in:
@@ -9,5 +9,8 @@ echo "→ Syncing database schema..."
|
||||
# db push creates the SQLite file and syncs tables to match schema.prisma
|
||||
/app/node_modules/.bin/prisma db push
|
||||
|
||||
echo "→ Seeding database (idempotent — skips existing records)..."
|
||||
/app/node_modules/.bin/tsx /app/prisma/seed.ts
|
||||
|
||||
echo "→ Starting Next.js on port ${PORT:-3000}..."
|
||||
exec node /app/server.js
|
||||
|
||||
Reference in New Issue
Block a user