首次提交: OnebotCatalog 项目代码与文档(含 NX 按需生成服务二期、后台、一键启动)
This commit is contained in:
17
_start_web.bat
Normal file
17
_start_web.bat
Normal file
@@ -0,0 +1,17 @@
|
||||
@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
|
||||
Reference in New Issue
Block a user