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:
70
visual_workflow_builder/quick_test.sh
Executable file
70
visual_workflow_builder/quick_test.sh
Executable file
@@ -0,0 +1,70 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Quick Test - Visual Workflow Builder Backend on Port 5001
|
||||
|
||||
echo "🧪 Test Rapide du Backend (Port 5001)..."
|
||||
echo ""
|
||||
|
||||
cd backend
|
||||
|
||||
# Vérifier si le venv existe
|
||||
if [ ! -d "venv" ]; then
|
||||
echo "❌ Environnement virtuel non trouvé"
|
||||
echo "Exécutez d'abord: python3 -m venv venv"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Activer venv
|
||||
source venv/bin/activate
|
||||
|
||||
# Vérifier si les dépendances sont installées
|
||||
if ! python -c "import flask" 2>/dev/null; then
|
||||
echo "📦 Installation des dépendances..."
|
||||
pip install -q -r requirements.txt
|
||||
fi
|
||||
|
||||
# Créer .env si nécessaire
|
||||
if [ ! -f ".env" ]; then
|
||||
cp .env.example .env
|
||||
echo "✅ Fichier .env créé"
|
||||
fi
|
||||
|
||||
# Démarrer le serveur en arrière-plan
|
||||
echo "🚀 Démarrage du serveur sur le port 5001..."
|
||||
python app.py > /dev/null 2>&1 &
|
||||
SERVER_PID=$!
|
||||
|
||||
# Attendre que le serveur démarre
|
||||
sleep 3
|
||||
|
||||
# Tester le endpoint health
|
||||
echo "🔍 Test du endpoint /health..."
|
||||
RESPONSE=$(curl -s http://localhost:5001/health 2>/dev/null)
|
||||
|
||||
if [ $? -eq 0 ] && [ ! -z "$RESPONSE" ]; then
|
||||
echo "✅ Backend fonctionne correctement!"
|
||||
echo ""
|
||||
echo "📊 Réponse: $RESPONSE"
|
||||
echo ""
|
||||
echo "🌐 Endpoints disponibles:"
|
||||
echo " • Health: http://localhost:5001/health"
|
||||
echo " • Workflows: http://localhost:5001/api/workflows"
|
||||
echo " • Templates: http://localhost:5001/api/templates"
|
||||
echo " • Node Types: http://localhost:5001/api/node-types"
|
||||
echo " • Executions: http://localhost:5001/api/executions"
|
||||
echo ""
|
||||
echo "✅ Le port 5001 est maintenant utilisé (au lieu de 5000)"
|
||||
else
|
||||
echo "❌ Échec de connexion au serveur"
|
||||
echo ""
|
||||
echo "Vérifiez que le port 5001 est libre:"
|
||||
echo " lsof -i :5001"
|
||||
fi
|
||||
|
||||
# Arrêter le serveur
|
||||
echo ""
|
||||
echo "🛑 Arrêt du serveur..."
|
||||
kill $SERVER_PID 2>/dev/null
|
||||
wait $SERVER_PID 2>/dev/null
|
||||
|
||||
echo "✅ Test terminé!"
|
||||
Reference in New Issue
Block a user