@lnsiaxe/dsh-web-restart
Ensure or rotate the DSH web server (detached) when this bundle is loaded in a profile 适合需在服务挂掉后自动复活或轮换 Web 服务的用户,需配置端口与 ensure/rotate 模式。
설치
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:LnsiAxe/dsh-web-restart使用
## 配置(`cordis.patch.yml`)
```yaml
- insert:
- id: web-restart
name: '@lnsiaxe/dsh-web-restart'
config:
port: 3080 # web 服务端口
mode: ensure # ensure | rotate
# workspace: C:\Users\\my-workspace # 可选,默认取进程 cwd
# gitDir: C:\Users\\git\cmd # 可选,默认 ~\git\cmd(给 side-panel 的 git 用)