READMESource: main@6c9a3550
dsh-restart · 重启 Web
设置页左侧导航最后一项 重启。确认后重启当前 dsh web。
有监督进程(macOS LaunchAgent KeepAlive、systemd)时只退出,由它拉起。没有监督时先拉起一份新进程再退出。可用 DSH_RESTART=exit 或 DSH_RESTART=respawn 强制。
安装
dsh plugin --profile web add github:xingyingyuzhui/dsh-restart
装完重启一次 dsh web。之后在 设置 → 重启。
不要对本插件执行 GET 重启。路由是 POST /dsh-restart/now。
本地开发:
dsh plugin --profile web add link:/abs/path/to/dsh-restart
改源码后执行 npm test / npm run build,不要手改生成的 client.js。
卸载
dsh plugin --profile web remove dsh-restart
License
MIT
No comments yet. Be the first to write one.