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:
47
server/start_server.sh
Executable file
47
server/start_server.sh
Executable file
@@ -0,0 +1,47 @@
|
||||
#!/bin/bash
|
||||
# start_server.sh
|
||||
# Démarre le serveur API pour recevoir les uploads
|
||||
|
||||
set -e
|
||||
|
||||
echo "========================================"
|
||||
echo "RPA Vision V3 - Serveur API Upload"
|
||||
echo "========================================"
|
||||
|
||||
# Fiche #23 - Anti-oubli tokens (DEV)
|
||||
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
PROJECT_DIR="$(dirname "$SCRIPT_DIR")"
|
||||
chmod +x "$SCRIPT_DIR/bootstrap_local_env.sh" 2>/dev/null || true
|
||||
"$SCRIPT_DIR/bootstrap_local_env.sh" >/dev/null || true
|
||||
|
||||
# Vérifier Python
|
||||
if ! command -v python3 &> /dev/null; then
|
||||
echo "ERREUR: Python 3 n'est pas installé"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Installer dépendances si nécessaire
|
||||
if ! python3 -c "import fastapi" 2>/dev/null; then
|
||||
echo "Installation des dépendances..."
|
||||
pip install -r requirements_server.txt
|
||||
fi
|
||||
|
||||
# NB: bootstrap_local_env.sh a déjà créé/chargé les secrets/tokens si besoin.
|
||||
|
||||
# Démarrer le serveur
|
||||
echo "Démarrage du serveur sur http://0.0.0.0:8000"
|
||||
echo ""
|
||||
echo "Endpoints disponibles:"
|
||||
echo " POST http://localhost:8000/api/traces/upload"
|
||||
echo " GET http://localhost:8000/api/traces/status"
|
||||
echo " GET http://localhost:8000/api/traces/sessions"
|
||||
echo ""
|
||||
echo "Auth (Fiche #23):"
|
||||
echo " Header: Authorization: Bearer <token>"
|
||||
echo " Read-only token: ${RPA_TOKEN_READONLY:-<READ_ONLY_TOKEN>}"
|
||||
echo " Dashboard: http://localhost:5001/?token=${RPA_TOKEN_READONLY:-}"
|
||||
echo ""
|
||||
echo "Appuyez sur Ctrl+C pour arrêter"
|
||||
echo ""
|
||||
|
||||
python3 api_upload.py
|
||||
Reference in New Issue
Block a user