Interface web Flask securisee pour surveiller CPU, RAM, disques et processus (JVM, Nginx, Amadea Web 8 x64). Alertes email SMTP configurables, seuils reglables, compilation PyInstaller en .exe, installation service Windows via NSSM. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
28 lines
750 B
Batchfile
28 lines
750 B
Batchfile
@echo off
|
|
title Build Supervision .exe
|
|
echo ==========================================
|
|
echo Build Supervision en executable
|
|
echo ==========================================
|
|
echo.
|
|
|
|
call .venv\Scripts\activate.bat
|
|
|
|
echo [INFO] Compilation avec PyInstaller...
|
|
pyinstaller ^
|
|
--name supervision ^
|
|
--onedir ^
|
|
--add-data "templates;templates" ^
|
|
--add-data "static;static" ^
|
|
--hidden-import flask ^
|
|
--hidden-import flask_login ^
|
|
--hidden-import flask_limiter ^
|
|
--hidden-import psutil ^
|
|
--noconfirm ^
|
|
app.py
|
|
|
|
echo.
|
|
echo [OK] Executable genere dans dist\supervision\
|
|
echo [INFO] Copiez le dossier dist\supervision\ sur le serveur cible.
|
|
echo [INFO] Le dossier data\ sera cree automatiquement au premier lancement.
|
|
pause
|