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