Run service with cwd=kit root instead of --app-dir (old app copy in delivery shadowed the import)

This commit is contained in:
Sadmin committed 2026-11-02 16:46:00 +03:00
1 parent 5d2b7bfd9d
commit e03b0bc1c6
2 files changed
+12 -9

No files matched your search

+4 -3
View File
@@ -1,12 +1,13 @@
@echo off
REM docchecker service + browser page: 127.0.0.1:8011
REM Service runs with cwd = kit root (where app.py and static/ live)
cd /d %~dp0
REM app.py lives in the kit root; online archive keeps it in the parent folder
set "SRV=%~dp0"
if not exist "%SRV%app.py" set "SRV=%~dp0.."
if not exist "%SRV%static" set "SRV=%~dp0.."
cd /d "%SRV%"
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" "%~dp0venv\Scripts\python.exe" -m uvicorn app:app --host 127.0.0.1 --port 8011 --app-dir "%SRV%"
start "docchecker" "%~dp0venv\Scripts\python.exe" -m uvicorn app:app --host 127.0.0.1 --port 8011
timeout /t 5 /nobreak >nul
start http://127.0.0.1:8011