fix: add chcp 65001 and .venv check to startup scripts
This commit is contained in:
@@ -1,10 +1,18 @@
|
||||
@echo off
|
||||
chcp 65001 >nul
|
||||
setlocal enabledelayedexpansion
|
||||
echo ================================================
|
||||
echo agent_jrxml 启动 (API + 验证)
|
||||
echo ================================================
|
||||
cd /d "%~dp0"
|
||||
|
||||
:: 环境检查
|
||||
if not exist "%~dp0.venv\Scripts\python.exe" (
|
||||
echo [错误] 未找到 .venv,请先创建虚拟环境
|
||||
pause
|
||||
exit /b 1
|
||||
)
|
||||
|
||||
:: 清理残留进程
|
||||
echo [清理] 检查残留进程...
|
||||
for /f "tokens=5" %%a in ('netstat -ano ^| findstr ":8000.*LISTENING"') do (
|
||||
|
||||
@@ -1,10 +1,18 @@
|
||||
@echo off
|
||||
chcp 65001 >nul
|
||||
setlocal enabledelayedexpansion
|
||||
echo ================================================
|
||||
echo agent_jrxml 启动 (全栈)
|
||||
echo ================================================
|
||||
cd /d "%~dp0"
|
||||
|
||||
:: 环境检查
|
||||
if not exist "%~dp0.venv\Scripts\python.exe" (
|
||||
echo [错误] 未找到 .venv,请先创建虚拟环境
|
||||
pause
|
||||
exit /b 1
|
||||
)
|
||||
|
||||
:: 清理残留进程
|
||||
echo [清理] 检查残留进程...
|
||||
for /f "tokens=5" %%a in ('netstat -ano ^| findstr ":8000.*LISTENING"') do taskkill /F /PID %%a >nul 2>&1
|
||||
|
||||
Reference in New Issue
Block a user