forked from ap3965/Bengaluru-House-Price-Prediction
-
Notifications
You must be signed in to change notification settings - Fork 0
/
render.yaml
35 lines (33 loc) · 972 Bytes
/
render.yaml
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
services:
# Backend service
- type: web
name: bengaluru-house-price-prediction-backend
env: python
buildCommand: pip install -r backend/requirements.txt
startCommand: cd backend && gunicorn app:app
envVars:
- key: PYTHON_VERSION
value: 3.11.9
# Frontend service
- type: web
name: bengaluru-house-price-prediction-frontend
env: static
buildCommand: cd frontend && npm install && npm run build
staticPublishPath: ./frontend/build
routes:
- type: rewrite
source: /*
destination: /index.html
# API service (optional, if you want to separate API routes)
- type: web
name: bengaluru-house-price-prediction-api
env: python
buildCommand: pip install -r backend/requirements.txt
startCommand: gunicorn --chdir backend app:app
envVars:
- key: PYTHON_VERSION
value: 3.11.9
routes:
- type: rewrite
source: /api/*
destination: /api/$1