run_web.bat 744 B

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