fix(scripts): 修复 Windows 启动脚本兼容性和稳定性问题
- start.bat: 移除后端日志文件重定向,避免文件锁定导致启动失败 - start.bat: 用 ping 替代 timeout,修复 PowerShell 下错误 - start.bat: 健康检查改为 health 接口,提升可靠性 - start.bat: 修复前端 cd 路径带空格时的引号嵌套问题,使用 /B 在当前窗口后台运行 - stop.bat: 同样用 ping 替代 timeout 提升兼容性
This commit is contained in:
@@ -31,7 +31,8 @@ echo Stopped %STOPPED_COUNT% process(es)
|
||||
echo.
|
||||
|
||||
echo [2/2] Waiting for processes to fully stop...
|
||||
timeout /t 2 /nobreak >nul
|
||||
REM Use ping instead of timeout for PowerShell compatibility
|
||||
ping -n 3 127.0.0.1 >nul 2>&1
|
||||
|
||||
echo.
|
||||
echo === Done ===
|
||||
|
||||
Reference in New Issue
Block a user