forked from Abhishekmishra2808/moleculeX
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrender.yaml
More file actions
40 lines (28 loc) · 1.04 KB
/
Copy pathrender.yaml
File metadata and controls
40 lines (28 loc) · 1.04 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
services:services:
- type: web - type: web
name: moleculex-backend name: moleculex-backend
env: python env: python
region: oregon region: oregon
plan: free plan: free
buildCommand: cd backend && pip install --upgrade pip setuptools wheel && pip install -r requirements.txt buildCommand: pip install -r requirements.txt
startCommand: cd backend && uvicorn main:app --host 0.0.0.0 --port $PORT startCommand: uvicorn main:app --host 0.0.0.0 --port $PORT
envVars: envVars:
- key: PYTHON_VERSION - key: PYTHON_VERSION
value: 3.11.9 value: 3.11
- key: PORT
value: 8000
healthCheckPath: /api/health
- type: web
name: moleculex-frontend
env: static
region: oregon
plan: free
buildCommand: npm install && npm run build
staticPublishPath: ./dist
routes:
- type: rewrite
source: /api/*
destination: https://moleculex-backend.onrender.com/api/*
- type: rewrite
source: /*
destination: /index.html