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:
126
visual_workflow_builder/PORT_CHANGE.md
Normal file
126
visual_workflow_builder/PORT_CHANGE.md
Normal file
@@ -0,0 +1,126 @@
|
||||
# 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
|
||||
```bash
|
||||
cd visual_workflow_builder
|
||||
./start.sh
|
||||
```
|
||||
|
||||
Le backend démarrera sur le port **5001** automatiquement.
|
||||
|
||||
### Option 2: Manuel
|
||||
|
||||
**Backend**:
|
||||
```bash
|
||||
cd visual_workflow_builder/backend
|
||||
source venv/bin/activate
|
||||
python app.py
|
||||
```
|
||||
Serveur disponible sur: http://localhost:5001
|
||||
|
||||
**Frontend** (après installation de npm):
|
||||
```bash
|
||||
cd visual_workflow_builder/frontend
|
||||
npm install # Première fois seulement
|
||||
npm start
|
||||
```
|
||||
Application disponible sur: http://localhost:3000
|
||||
|
||||
## Test du Backend
|
||||
|
||||
```bash
|
||||
cd visual_workflow_builder
|
||||
./test_backend.sh
|
||||
```
|
||||
|
||||
Ou manuellement:
|
||||
```bash
|
||||
curl http://localhost:5001/health
|
||||
```
|
||||
|
||||
Réponse attendue:
|
||||
```json
|
||||
{"status": "healthy", "version": "1.0.0"}
|
||||
```
|
||||
|
||||
## Configuration Personnalisée
|
||||
|
||||
Si vous voulez utiliser un autre port, modifiez:
|
||||
|
||||
1. **Backend**: `backend/.env`
|
||||
```bash
|
||||
PORT=5002 # Votre port personnalisé
|
||||
```
|
||||
|
||||
2. **Frontend**: `frontend/webpack.config.js`
|
||||
```javascript
|
||||
proxy: {
|
||||
'/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:
|
||||
```bash
|
||||
# Linux/Mac
|
||||
lsof -i :5001
|
||||
|
||||
# Si rien n'est retourné, le port est libre
|
||||
```
|
||||
|
||||
Pour vérifier que le serveur écoute sur 5001:
|
||||
```bash
|
||||
# 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
|
||||
Reference in New Issue
Block a user