forked from Divanshu0212/HackByte_3.0
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrender.yaml
More file actions
33 lines (31 loc) · 869 Bytes
/
render.yaml
File metadata and controls
33 lines (31 loc) · 869 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
services:
# Frontend Static Site
- type: web
name: hackbyte-frontend
env: static
buildCommand: cd frontend && npm ci && npm run build
staticPublishPath: frontend/dist
envVars:
- key: VITE_API_URL
value: https://hackbyte-backend.onrender.com
- key: VITE_ML_API_URL
value: https://hackbyte-ml.onrender.com
# Backend API
- type: web
name: hackbyte-backend
env: node
buildCommand: cd backend && npm ci
startCommand: cd backend && npm start
envVars:
- key: NODE_ENV
value: production
- key: PORT
value: 10000
- key: FRONTEND_URL
value: https://hackbyte-frontend.onrender.com
# ML Models API
- type: web
name: hackbyte-ml
env: python
buildCommand: cd models && pip install -r requirements.txt
startCommand: cd models && python app.py