Files

13 lines
741 B
Batchfile
Raw Permalink Normal View History

@echo off
rem ============================================================
rem 急救启动 DSH(rescue profile)
rem 用途:web/dev 配置或插件故障导致项目无法启动时,
rem 用纯默认 DSH 状态启动 GUI(端口 3089,避开 3081)。
rem 用法:双击本文件;或命令行加端口参数:急救启动DSH.bat 3090
rem ============================================================
set PORT=3089
if not "%~1"=="" set PORT=%~1
echo [rescue] starting default DSH on port %PORT% ...
rem dsh 命令不在系统 PATH(npx 缓存目录),必须通过 npx 启动
powershell -ExecutionPolicy Bypass -Command "& 'D:\Program Files\nodejs\node.exe' 'C:\Users\maidou\AppData\Local\npm-cache\_npx\1e7f6d9597241db0\node_modules\@deepseek-ai\dsh\lib\bin.js' --profile rescue --port %PORT%"
pause