Add missing milestones migration and fall back to db push so backend updates deploy successfully.
25 lines
725 B
YAML
25 lines
725 B
YAML
services:
|
|
- type: web
|
|
name: eene-dashboard-backend
|
|
runtime: node
|
|
rootDir: backend
|
|
buildCommand: npm install --include=dev && npx prisma migrate deploy || npx prisma db push && npx prisma generate && npm run build
|
|
startCommand: npm start
|
|
envVars:
|
|
- key: DATABASE_URL
|
|
sync: false # Render 대시보드에서 직접 입력
|
|
- key: PORT
|
|
value: 4000
|
|
- key: FRONTEND_URL
|
|
sync: false # Vercel 배포 후 주소 입력
|
|
- key: JWT_SECRET
|
|
generateValue: true
|
|
- key: JWT_EXPIRES_IN
|
|
value: 7d
|
|
- key: UPLOAD_DIR
|
|
value: ./uploads
|
|
- key: MAX_FILE_SIZE_MB
|
|
value: 20
|
|
- key: NODE_ENV
|
|
value: production
|