Repository navigation
Expand file tree
/
Copy pathrender.yaml
More file actions
56 lines (52 loc) · 1.71 KB
/
Copy pathrender.yaml
File metadata and controls
56 lines (52 loc) · 1.71 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
# Render.com Deployment Configuration
# Deploy CashNet on Render with separate services for API, Models, and Frontend
services:
# Backend API Server (Node.js)
- type: web
name: cashnet-api
runtime: node
buildCommand: cd artifacts/api-server && npm install && npm run build
startCommand: cd artifacts/api-server && node dist/index.js
autoDeployTrigger: commit
healthCheckPath: /api/healthz
# PORT is set by Render automatically; do not hardcode it here.
envVars:
- key: NODE_ENV
value: production
- key: PYTHON_SERVICE_URL
sync: false
- key: CORS_ORIGIN
value: https://cashnet-server.vercel.app
- key: CASHNET_DATA_MODE
value: synthetic
- key: ENABLE_PII_MASKING
value: "true"
- key: LOG_LEVEL
value: info
# Model Server (Python / Flask)
- type: web
name: cashnet-models
runtime: python
pythonVersion: 3.11.9
buildCommand: pip install -r requirements.txt && pip install flask flask-cors
startCommand: python scripts/model_server.py
autoDeployTrigger: commit
healthCheckPath: /health
envVars:
- key: FLASK_ENV
value: production
- key: PYTHONUNBUFFERED
value: "1"
# Frontend (React static site)
- type: web
name: cashnet-frontend
runtime: static
buildCommand: pnpm install && pnpm --filter @workspace/cashnet run build
staticPublishPath: artifacts/cashnet/dist/public
autoDeployTrigger: commit
routes:
- type: rewrite
source: /*
destination: /index.html
# Set these in the Render dashboard after first deploy:
# PYTHON_SERVICE_URL -> URL of the cashnet-models service (e.g. https://cashnet-py.onrender.com)