#!/bin/bash # Script de démarrage rapide du backend Visual Workflow Builder # Auteur : Dom, Alice, Kiro - 08 janvier 2026 echo "⚡ DÉMARRAGE RAPIDE - BACKEND VWB" echo "==================================" # Détecter python ou python3 if command -v python3 > /dev/null; then PYTHON_CMD=python3 elif command -v python > /dev/null; then PYTHON_CMD=python else echo "❌ Erreur: Python n'est pas installé" exit 1 fi echo "🐍 Python: $PYTHON_CMD" # Vérifier si nous sommes dans le bon répertoire if [ ! -f "app_lightweight.py" ]; then echo "❌ Erreur: Exécutez depuis visual_workflow_builder/backend/" exit 1 fi # Créer les répertoires nécessaires echo "📁 Préparation des répertoires..." mkdir -p ../../data/workflows mkdir -p logs # Définir les variables d'environnement export FLASK_ENV=production export PORT=5002 echo "🚀 Démarrage du backend allégé..." echo "🌐 URL: http://localhost:5002" echo "❤️ Health: http://localhost:5002/health" echo "📋 API: http://localhost:5002/api/workflows" echo "" echo "Appuyez sur Ctrl+C pour arrêter" echo "" # Démarrer le serveur allégé $PYTHON_CMD app_lightweight.py