-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrender.yaml
More file actions
27 lines (27 loc) · 1.1 KB
/
Copy pathrender.yaml
File metadata and controls
27 lines (27 loc) · 1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# Render Blueprint for the Flowboard backend.
# The database is hosted separately on Neon — paste its connection string into
# DATABASE_URL (marked sync: false, so it is set in the dashboard, not in git).
#
# Deploy: Render Dashboard -> New -> Blueprint -> pick this repo.
services:
- type: web
name: flowboard-api
runtime: node
rootDir: backend
plan: free
region: frankfurt
healthCheckPath: /api/health
# --include=dev is required: NODE_ENV=production would otherwise make
# npm ci skip devDependencies (typescript, prisma), breaking the build.
buildCommand: npm ci --include=dev && npx prisma generate && npm run build
# Apply pending migrations on every deploy, then start the server.
startCommand: npx prisma migrate deploy && node dist/index.js
envVars:
- key: NODE_ENV
value: production
- key: JWT_SECRET
generateValue: true
- key: DATABASE_URL
sync: false # paste the Neon connection string (with ?sslmode=require)
- key: FRONTEND_ORIGIN
sync: false # set to the Vercel URL, e.g. https://flowboard.vercel.app