-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrender.yaml
More file actions
35 lines (34 loc) · 929 Bytes
/
Copy pathrender.yaml
File metadata and controls
35 lines (34 loc) · 929 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
services:
# Backend Service
- type: web
name: codecollab-backend
runtime: docker
dockerfilePath: ./backend/Dockerfile
dockerContext: ./backend
env: production
plan: free
healthCheckPath: /api/health
envVars:
- key: FLASK_ENV
value: production
- key: DATABASE_URL
value: sqlite:///codecollab.db
- key: JWT_SECRET_KEY
generateValue: true
- key: CORS_ORIGINS
fromService:
type: web
name: codecollab-frontend
property: host
# Frontend Service (Static Site)
- type: web
name: codecollab-frontend
runtime: static
buildCommand: npm run build
staticPublishPath: ./dist
rootDir: ./frontend/frontend
envVars:
- key: VITE_API_BASE_URL
value: https://codecollab-backend-o8qs.onrender.com
- key: VITE_SOCKET_URL
value: https://codecollab-backend-o8qs.onrender.com