-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrender.yaml
More file actions
30 lines (29 loc) · 852 Bytes
/
render.yaml
File metadata and controls
30 lines (29 loc) · 852 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 API service
- type: web
name: neuralpaper-api
env: python
buildCommand: pip install -r backend/requirements.txt
startCommand: cd backend && gunicorn -w 4 -k uvicorn.workers.UvicornWorker api.main:app --bind 0.0.0.0:$PORT
envVars:
- key: PYTHON_VERSION
value: 3.9.0
- key: NEURAL_ENV
value: production
healthCheckPath: /
autoDeploy: true
# Frontend service (optional - you can also deploy this on Vercel)
- type: web
name: neuralpaper-frontend
env: node
buildCommand: cd frontend && npm install && npm run build
startCommand: cd frontend && npm start
envVars:
- key: NODE_VERSION
value: 16.13.0
- key: API_URL
fromService:
name: neuralpaper-api
type: web
property: url
autoDeploy: true