826 B
826 B
检测路径改为搜索 crmeb 目录
日期:2026-07-05
变更摘要
批量「检测路径」由在 /www/wwwroot 下搜索 workerman.bat 改为搜索名为 crmeb 的目录,并将其完整路径写入 target_path。
检测逻辑
find /www/wwwroot -iname 'crmeb' -type d -print -quit 2>/dev/null
示例:/www/wwwroot/shop.example.com/crmeb → target_path = /www/wwwroot/shop.example.com/crmeb
涉及文件
| 文件 | 变更 |
|---|---|
server/application/server_batch_common.py |
detect_and_save_target_path |
frontend/src/pages/ServersPage.vue |
确认对话框文案 |
scripts/batch_detect_target_path.py |
脚本说明 |
tests/test_nginx_path_detect.py |
单元测试 |
验证
.venv/bin/pytest tests/test_nginx_path_detect.py -q