Files

28 lines
992 B
Batchfile

@echo off
REM docchecker service + browser page: 127.0.0.1:8011 (no kit logic, per-user venv)
cd /d %~dp0
set "SRV=%~dp0"
if not exist "%SRV%static" set "SRV=%~dp0.."
cd /d "%SRV%"
set "PYEXE=%~dp0venv\Scripts\python.exe"
if not exist "%PYEXE%" (
echo Python not found: run install.bat from delivery first
echo ^(venv is created by install.bat on this very computer^)
pause
exit /b 1
)
set LT_URL=http://127.0.0.1:8010
set LLM_BASE_URL=http://127.0.0.1:11434/v1
set LLM_MODEL=qwen3-4b-instruct
start "docchecker" "%PYEXE%" -m uvicorn app:app --host 127.0.0.1 --port 8011
set "OK="
for /l %%i in (1,1,6) do (
if not defined OK curl -s --max-time 2 -o nul -w "%%{http_code}" http://127.0.0.1:8011/api/health 2>nul | findstr "200" >nul && set OK=1
if not defined OK timeout /t 2 /nobreak >nul
)
if not defined OK (
echo Service did not start in 12 s - see the docchecker window for the reason
pause
exit /b 1
)
start http://127.0.0.1:8011