modify: build/serve command

This commit is contained in:
2026-01-31 22:25:11 +08:00
parent 00e22bcb71
commit f58181fbd3
3 changed files with 16 additions and 7 deletions
+13 -4
View File
@@ -13,8 +13,7 @@ uv 环境
```shell
uv sync
uv pip install -e .
source .venv/bin/activate # windwows 命令为 .venv\Scripts\activate
cm_main
uv run serve
```
纯 python 环境
@@ -24,13 +23,23 @@ python -m venv .venv
source .venv/bin/activate # windwows 命令为 .venv\Scripts\activate
pip install -r requirements.txt
pip install -e .
cm_main
serve
```
## 打包项目
uv 环境
```shell
cm_build
uv run build
```
纯 python 环境
```shell
source .venv/bin/activate # windwows 命令为 .venv\Scripts\activate
build
```
打包出来的文件在 build 目录下
```text