start.bat.bak-healthz 675 B

123456789101112131415161718192021
  1. @echo off
  2. chcp 65001 >nul
  3. set PYTHONUTF8=1
  4. cd /d "%~dp0"
  5. if not exist ".venv\Scripts\python.exe" (
  6. echo [X] Not installed yet: .venv\Scripts\python.exe not found
  7. echo Run install.bat first. If install printed errors, send that screen back
  8. echo instead of continuing - the server cannot start without .venv.
  9. pause
  10. exit /b 2
  11. )
  12. ".venv\Scripts\python.exe" guanlan.py serve
  13. if errorlevel 1 (
  14. echo.
  15. echo [X] Server did not start ^(reason above^). Not opening the browser -
  16. echo a "site cannot be reached" page would look like a network problem.
  17. echo See logs\gateway.log
  18. pause
  19. exit /b 1
  20. )
  21. start "" http://127.0.0.1:28084/