fix(deploy): embed prisma migrate deploy in API startup
Tessera CI/CD / Lint & Type Check (push) Successful in 45s
Tessera CI/CD / Tests (push) Successful in 42s
Tessera CI/CD / Build & Publish Images (push) Successful in 3m52s

- Move prisma to runtime dependencies so it's available in prod image
- API runs migrate deploy before starting (handles fresh installs + updates)
- Remove separate migrate service from prod compose

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-06-29 14:50:42 +02:00
parent 14e6e8401f
commit e26fbd720e
4 changed files with 5 additions and 19 deletions
+1 -1
View File
@@ -21,6 +21,7 @@
"@nestjs/platform-express": "^11.0.0",
"@nestjs/schedule": "^6.1.3",
"@prisma/client": "^6.0.0",
"prisma": "^6.0.0",
"@tessera/shared": "workspace:*",
"argon2": "^0.44.0",
"class-transformer": "^0.5.1",
@@ -50,7 +51,6 @@
"@types/nodemailer": "^8.0.1",
"@types/passport-jwt": "^4.0.1",
"@types/passport-local": "^1.0.38",
"prisma": "^6.0.0",
"typescript": "^5.5.0"
}
}