Files
railseek6/zrun_no_auth.bat

34 lines
977 B
Batchfile

@echo off
echo Starting LightRAG Server without Authentication...
echo.
echo Project Directory: %CD%
echo WebUI URL: http://localhost:3015
echo Authentication: DISABLED
echo.
echo Press Ctrl+C to stop the server
echo.
:: Activate Python environment if using virtual environment
if exist "venv\Scripts\activate.bat" (
call venv\Scripts\activate.bat
)
:: Build the official LightRAG web UI first
echo Building LightRAG Web UI...
cd LightRAG-main\lightrag_webui
call npm install --legacy-peer-deps
if %ERRORLEVEL% NEQ 0 (
echo npm install failed, trying with bun...
call bun install --frozen-lockfile
)
call npm run build-no-bun
if %ERRORLEVEL% NEQ 0 (
echo npm build failed, trying with bun...
call bun run build --emptyOutDir
)
cd ..\..
:: Start the official LightRAG server WITHOUT authentication
echo Starting LightRAG Server without Authentication...
lightrag-server --port 3015 --embedding-binding ollama --rerank-binding null --host 0.0.0.0 --key ""