- 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>
2.6 KiB
2.6 KiB
Changement de Port - Visual Workflow Builder
✅ Port Modifié
Le port du backend a été changé de 5000 vers 5001 pour éviter les conflits.
Fichiers Mis à Jour
1. Backend Configuration
- ✅
backend/.env.example- PORT=5001 - ✅
backend/.env- PORT=5001 (si le fichier existe)
2. Frontend Configuration
- ✅
frontend/webpack.config.js- Proxy vers localhost:5001
3. Scripts
- ✅
test_backend.sh- Tests sur le port 5001
Nouvelles URLs
Backend
- Health Check: http://localhost:5001/health
- API Workflows: http://localhost:5001/api/workflows
- API Templates: http://localhost:5001/api/templates
- API Node Types: http://localhost:5001/api/node-types
- API Executions: http://localhost:5001/api/executions
Frontend
- Application: http://localhost:3000 (inchangé)
- Proxy API: Redirige automatiquement vers localhost:5001
Démarrage
Option 1: Script Automatique
cd visual_workflow_builder
./start.sh
Le backend démarrera sur le port 5001 automatiquement.
Option 2: Manuel
Backend:
cd visual_workflow_builder/backend
source venv/bin/activate
python app.py
Serveur disponible sur: http://localhost:5001
Frontend (après installation de npm):
cd visual_workflow_builder/frontend
npm install # Première fois seulement
npm start
Application disponible sur: http://localhost:3000
Test du Backend
cd visual_workflow_builder
./test_backend.sh
Ou manuellement:
curl http://localhost:5001/health
Réponse attendue:
{"status": "healthy", "version": "1.0.0"}
Configuration Personnalisée
Si vous voulez utiliser un autre port, modifiez:
-
Backend:
backend/.envPORT=5002 # Votre port personnalisé -
Frontend:
frontend/webpack.config.jsproxy: { '/api': { target: 'http://localhost:5002', // Votre port changeOrigin: true }, '/socket.io': { target: 'http://localhost:5002', // Votre port ws: true } }
Vérification
Pour vérifier que le port 5001 est libre:
# Linux/Mac
lsof -i :5001
# Si rien n'est retourné, le port est libre
Pour vérifier que le serveur écoute sur 5001:
# Après avoir démarré le backend
netstat -tuln | grep 5001
Résumé
✅ Port Backend: 5000 → 5001
✅ Port Frontend: 3000 (inchangé)
✅ Tous les fichiers mis à jour
✅ Prêt à démarrer
Date: 2 décembre 2024
Raison: Conflit de port avec un autre service