文档描述

This commit is contained in:
2026-06-25 14:06:44 +08:00
parent d6ebf68728
commit fe708377e7
+6 -17
View File
@@ -180,10 +180,6 @@ SURUGAYA_REDIS_DB=0
### 4.3 安装依赖与浏览器 ### 4.3 安装依赖与浏览器
```powershell ```powershell
# 如果私有 PyPI 索引需要认证,先设置用户名密码
$env:UV_INDEX_JERRYYAN_USERNAME="your_username"
$env:UV_INDEX_JERRYYAN_PASSWORD="your_password"
uv sync uv sync
uv run playwright install chromium uv run playwright install chromium
``` ```
@@ -334,8 +330,6 @@ sites:
user_data_dir: "C:/jp-deploy/chrome-profile/acc_02" user_data_dir: "C:/jp-deploy/chrome-profile/acc_02"
proxy: "http://127.0.0.1:7890" proxy: "http://127.0.0.1:7890"
mercari: []
yahoo: []
``` ```
> 提示: > 提示:
@@ -346,14 +340,12 @@ sites:
### 5.4 安装依赖与浏览器 ### 5.4 安装依赖与浏览器
```powershell ```powershell
# 如果私有 PyPI 索引需要认证,先设置用户名密码
$env:UV_INDEX_JERRYYAN_USERNAME="your_username"
$env:UV_INDEX_JERRYYAN_PASSWORD="your_password"
uv sync uv sync
uv run playwright install chromium uv run playwright install chromium
``` ```
> 说明:`jp_pruchase_zdh_5` 依赖的 `surugaya-common` 来自公开 PyPI 索引,其源码与发布源头位于 `../jp_surugaya/packages/surugaya_common`。如需本地调试或修改共享包,请在 `../jp_surugaya` 仓库中开发并重新安装/发布。
### 5.5 启动 worker ### 5.5 启动 worker
```powershell ```powershell
@@ -430,14 +422,11 @@ uv sync
## 8. 常见问题 ## 8. 常见问题
### 8.1 `uv sync` 失败,提示私有索引 401 ### 8.1 `uv sync` 失败,提示索引无法访问
确认已设置: - 确认部署机能正常访问 `https://git.jerryyan.net/api/packages/jp/pypi/simple`
- 检查系统代理或防火墙是否拦截了该地址。
```powershell - 若企业内部网络需通过代理访问外网,请在执行 `uv sync` 前配置好 `HTTP_PROXY` / `HTTPS_PROXY` 环境变量。
$env:UV_INDEX_JERRYYAN_USERNAME="your_username"
$env:UV_INDEX_JERRYYAN_PASSWORD="your_password"
```
### 8.2 Playwright 启动浏览器失败 ### 8.2 Playwright 启动浏览器失败