modify: build/serve command
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user