test
This commit is contained in:
30
readme.md
Normal file
30
readme.md
Normal file
@@ -0,0 +1,30 @@
|
||||
# 初始化 uv
|
||||
|
||||
```sh
|
||||
# 创建虚拟环境
|
||||
uv venv
|
||||
|
||||
# 激活虚拟环境
|
||||
source .venv/bin/activate # Linux/Mac
|
||||
# 或
|
||||
.venv\Scripts\activate # Windows
|
||||
|
||||
# 安装依赖
|
||||
uv pip install -r requirements.txt
|
||||
```
|
||||
|
||||
# 安装 Playwright 浏览器
|
||||
|
||||
```sh
|
||||
playwright install chromium
|
||||
```
|
||||
|
||||
# 运行项目
|
||||
|
||||
```sh
|
||||
# 开发环境
|
||||
uvicorn app:app --reload
|
||||
|
||||
# 生产环境
|
||||
pm2 start ecosystem.config.cjs
|
||||
```
|
||||
Reference in New Issue
Block a user