| 12345678910111213141516 |
- @echo off
- rem Start the ops web console locally.
- rem Production on Linux: scripts/run_web.sh or deploy/wind104-web.service.
- rem Deps: pip install -r requirements.txt, then open http://127.0.0.1:8080/
- rem "python -m webapp.app" only resolves from the repo root, so cd there first.
- rem Override with: set PY=... set CONF=config\config.linux.ini set PORT=8081
- if not defined PY set PY=python
- if not defined CONF set CONF=config\config.ini
- if not defined PORT set PORT=8080
- cd /d "%~dp0.." || exit /b 1
- if not exist webapp\app.py (
- echo ERROR: webapp\app.py not found under %CD% - keep this script in the scripts folder.
- exit /b 1
- )
- if not exist logs mkdir logs
- "%PY%" -X utf8 -m webapp.app --config %CONF% --host 127.0.0.1 --port %PORT%
|