-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrender.yaml
More file actions
40 lines (39 loc) · 974 Bytes
/
Copy pathrender.yaml
File metadata and controls
40 lines (39 loc) · 974 Bytes
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
28
29
30
31
32
33
34
35
36
37
38
39
40
services:
# Backend Service
- type: web
name: campushub-backend
env: node
plan: free
rootDir: backend
buildCommand: npm install && npx prisma generate && npm run build
startCommand: npm run start:prod
envVars:
- key: NODE_ENV
value: production
- key: PORT
value: 10000
- key: DATABASE_URL
sync: false # Set this in Render Dashboard
- key: JWT_SECRET
generateValue: true
- key: FRONTEND_URL
fromService:
name: campushub-frontend
type: web
property: host
# Frontend Service
- type: web
name: campushub-frontend
env: node
plan: free
rootDir: frontend
buildCommand: npm install && npm run build
startCommand: npm run start
envVars:
- key: NODE_ENV
value: production
- key: NEXT_PUBLIC_API_URL
fromService:
name: campushub-backend
type: web
property: host