-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathrender.yml
More file actions
30 lines (29 loc) · 707 Bytes
/
render.yml
File metadata and controls
30 lines (29 loc) · 707 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
services:
# Backend Service
- type: web
name: informa-truth-backend
runtime: python
rootDir: backend
buildCommand: pip install -r requirements.txt
startCommand: uvicorn app.main:app --host 0.0.0.0 --port $PORT
envVars:
- key: PORT
value: 8000
plan: free
# Frontend Service
- type: static
name: informa-truth-frontend
runtime: node
rootDir: frontend
buildCommand: npm install && npm run build
publishDir: dist
routes:
- type: rewrite
source: /*
destination: /index.html
envVars:
- key: VITE_API_URL
fromService:
type: web
name: informa-truth-backend
property: url