Auto-commit: OCR workflow improvements, performance optimizations, and bug fixes
This commit is contained in:
32
zrun.bat
32
zrun.bat
@@ -21,8 +21,34 @@ if defined pid (
|
||||
echo No existing server found on port 3015.
|
||||
)
|
||||
|
||||
REM Recompile web UI if source exists
|
||||
echo Checking web UI source...
|
||||
if exist "LightRAG-main\lightrag_webui\package.json" (
|
||||
echo Found web UI source. Building...
|
||||
REM Ensure Node version 22.17.1
|
||||
where nvm >nul 2>&1
|
||||
if not errorlevel 1 (
|
||||
echo Using nvm to switch to Node 22.17.1...
|
||||
call nvm use 22.17.1
|
||||
) else (
|
||||
echo nvm not found, using system Node.
|
||||
)
|
||||
cd LightRAG-main\lightrag_webui
|
||||
REM Check if bun is available
|
||||
where bun >nul 2>&1
|
||||
if errorlevel 1 (
|
||||
echo bun not found, using npm...
|
||||
call npm run build-no-bun
|
||||
) else (
|
||||
echo Using bun...
|
||||
call bun run build
|
||||
)
|
||||
cd ..\..
|
||||
echo Web UI build completed.
|
||||
) else (
|
||||
echo Web UI source not found, using pre-built assets.
|
||||
)
|
||||
|
||||
REM Start the LightRAG server using the fixed Python script
|
||||
echo Starting LightRAG server...
|
||||
python start_server_fixed.py
|
||||
|
||||
pause
|
||||
python start_server_fixed.py
|
||||
Reference in New Issue
Block a user