Files
OnebotCatalog/_start_web.bat

18 lines
542 B
Batchfile

@echo off
setlocal
cd /d "%~dp0"
echo ==== start web server (default root = release\web_2026.08, port 8080) ====
start "OnebotWeb" powershell -NoProfile -ExecutionPolicy Bypass -File "tools\serve-web.ps1"
timeout /t 4 /nobreak >nul
echo ==== check web (8080) + genserver (8899) ====
curl.exe -s -o nul -w "web : %%{http_code}\n" http://localhost:8080/index.html
curl.exe -s http://localhost:8899/health
echo.
echo ==== done. browser: http://localhost:8080 ====
echo (keep the OnebotWeb window open; close it to stop the server)
endlocal