Use prisma db push instead of migrate deploy on startup
Eliminates the need to generate and commit migration files locally before first deploy. Schema is synced directly from schema.prisma on container start. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
"dev": "tsx watch src/index.ts",
|
||||
"build": "tsc",
|
||||
"start": "node dist/index.js",
|
||||
"start:prod": "prisma migrate deploy && node dist/index.js",
|
||||
"start:prod": "prisma db push && node dist/index.js",
|
||||
"db:migrate": "prisma migrate dev",
|
||||
"db:push": "prisma db push",
|
||||
"db:generate": "prisma generate",
|
||||
|
||||
Reference in New Issue
Block a user