-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrender.yaml
More file actions
56 lines (53 loc) · 1.67 KB
/
Copy pathrender.yaml
File metadata and controls
56 lines (53 loc) · 1.67 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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
services:
# Backend Service
- type: web
name: easeform-backend
env: python
buildCommand: pip install -r requirements.txt
startCommand: uvicorn app.main:app --host 0.0.0.0 --port $PORT
envVars:
- key: PYTHON_VERSION
value: 3.9.0
- key: SUPABASE_URL
sync: false
- key: SUPABASE_SERVICE_KEY
sync: false
- key: SUPABASE_ANON_KEY
sync: false
- key: FRONTEND_URL
fromService:
type: web
name: easeform-frontend
property: url
# Frontend Service (Static Site)
- type: web
name: easeform-frontend
env: node
buildCommand: cd frontend && npm install && npm run build
startCommand: cd frontend && npm start # Or serve -s dist if using a static server
# Render Static Sites don't have a start command usually, they serve the 'publish' directory.
# But for a "Web Service" hosting static files, we need a server.
# Let's check if user wants "Static Site" or "Web Service".
# User asked for "Static assets must resolve correctly".
# Render "Static Site" is cheaper/free. Use "static" type.
# REVISION: Render Static Site
- type: static
name: easeform-frontend
env: node
buildCommand: cd frontend && npm install && npm run build
staticPublishPath: frontend
envVars:
- key: SUPABASE_URL
sync: false
- key: SUPABASE_ANON_KEY
sync: false
- key: API_BASE_URL
fromService:
type: web
name: easeform-backend
property: url
# Database (Postgres) - Optional if using Supabase
# databases:
# - name: easeform-db
# databaseName: easeform
# user: easeform