v1.0 - Version stable: multi-PC, détection UI-DETR-1, 3 modes exécution

- Frontend v4 accessible sur réseau local (192.168.1.40)
- Ports ouverts: 3002 (frontend), 5001 (backend), 5004 (dashboard)
- Ollama GPU fonctionnel
- Self-healing interactif
- Dashboard confiance

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Dom
2026-01-29 11:23:51 +01:00
parent 21bfa3b337
commit a27b74cf22
1595 changed files with 412691 additions and 400 deletions

View File

@@ -0,0 +1,70 @@
#!/usr/bin/env python3
"""
Script de démarrage du backend VWB avec environnement virtuel.
Auteur : Dom, Alice, Kiro - 09 janvier 2026
Ce script démarre le backend VWB en s'assurant que l'environnement virtuel
est correctement configuré pour les dépendances de capture d'écran.
"""
import os
import sys
import subprocess
from pathlib import Path
def main():
"""Démarre le backend VWB avec l'environnement virtuel."""
print("🚀 Démarrage du backend VWB avec environnement virtuel...")
# Répertoire racine
root_dir = Path(__file__).parent.parent
# Chemin vers l'environnement virtuel
venv_dir = root_dir / "venv_v3"
venv_python = venv_dir / "bin" / "python3"
# Script backend
backend_script = root_dir / "visual_workflow_builder" / "backend" / "app_lightweight.py"
# Vérifications
if not venv_dir.exists():
print("❌ Environnement virtuel non trouvé dans venv_v3/")
return False
if not venv_python.exists():
print("❌ Python de l'environnement virtuel non trouvé")
return False
if not backend_script.exists():
print("❌ Script backend non trouvé")
return False
# Variables d'environnement
env = os.environ.copy()
env['PYTHONPATH'] = str(root_dir)
env['PORT'] = '5002'
print(f"🐍 Python: {venv_python}")
print(f"📁 Script: {backend_script}")
print(f"🌐 Port: 5002")
print("")
try:
# Démarrer le serveur
subprocess.run([
str(venv_python),
str(backend_script)
], env=env, cwd=str(root_dir))
except KeyboardInterrupt:
print("\n🛑 Arrêt du serveur")
except Exception as e:
print(f"❌ Erreur: {e}")
return False
return True
if __name__ == '__main__':
success = main()
sys.exit(0 if success else 1)