-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrender.yaml
More file actions
28 lines (27 loc) · 790 Bytes
/
render.yaml
File metadata and controls
28 lines (27 loc) · 790 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
# MusicPilot - Render Blueprint (简化版 - 无数据库)
services:
# ==================== 后端服务 ====================
- type: web
name: musicpilot-backend
runtime: python
rootDir: backend
buildCommand: pip install -e .
startCommand: uvicorn app.main:app --host 0.0.0.0 --port $PORT
envVars:
- key: APP_ENV
value: production
- key: DATABASE_URL
value: "sqlite:///./musicpilot.db"
- key: LOG_LEVEL
value: INFO
# ==================== 前端服务 ====================
- type: web
name: musicpilot-frontend
runtime: static
rootDir: frontend
buildCommand: npm ci && npm run build
staticPublishPath: ./dist
routes:
- type: rewrite
source: /*
destination: /index.html