feat: 新增 scripts 一键脚本与 YAML 配置生成 env

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Nixevol
2026-06-28 18:41:52 +08:00
co-authored by Cursor
parent b5170fe84b
commit 631982d980
7 changed files with 351 additions and 1 deletions
+14 -1
View File
@@ -27,7 +27,20 @@ artveris/
## 三、本地开发(已验证)
前置:Node ≥ 20、pnpm、Docker。
前置:Node ≥ 20、pnpm、Docker(脚本方式另需 Python + uv)。
### 方式一:一键脚本(推荐)
环境配置集中在 `scripts/config.yaml`(带注释),脚本据此自动生成 `.env`,无需手改:
```bash
uv run scripts/dev.py --install # 首次:装依赖 + 起依赖 + 迁移种子 + 启动三端
uv run scripts/dev.py # 之后日常启动
```
详见 `scripts/README.md`。
### 方式二:手动命令
```bash
# 1. 安装依赖