fix: sync production DB schema on every server start

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
EENE Dashboard
2026-06-05 22:34:48 +09:00
parent 0ee52cf35f
commit ccf892e479
2 changed files with 16 additions and 7 deletions

View File

@@ -5,8 +5,9 @@
"main": "dist/index.js",
"scripts": {
"dev": "tsx watch src/index.ts",
"build": "tsc",
"start": "node dist/index.js",
"db:sync": "prisma migrate deploy || prisma db push",
"build": "prisma generate && tsc",
"start": "npm run db:sync && node dist/index.js",
"db:migrate": "prisma migrate dev",
"db:generate": "prisma generate",
"db:studio": "prisma studio",
@@ -23,6 +24,7 @@
"jsonwebtoken": "^9.0.2",
"morgan": "^1.10.0",
"multer": "^1.4.5-lts.1",
"prisma": "^6.0.0",
"socket.io": "^4.8.0",
"uuid": "^10.0.0"
},
@@ -35,7 +37,6 @@
"@types/multer": "^1.4.12",
"@types/node": "^22.0.0",
"@types/uuid": "^10.0.0",
"prisma": "^6.0.0",
"tsx": "^4.19.0",
"typescript": "^5.6.0"
}