Files
rpa_vision_v3/restart_dashboard.sh
Dom a27b74cf22 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>
2026-01-29 11:23:51 +01:00

57 lines
1.6 KiB
Bash
Executable File
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#!/bin/bash
# Restart Dashboard Script
echo "🔄 Restarting RPA Vision V3 Dashboard..."
# Find and kill existing dashboard process
DASHBOARD_PID=$(pgrep -f "python.*web_dashboard/app.py")
if [ ! -z "$DASHBOARD_PID" ]; then
echo "📍 Found dashboard process: $DASHBOARD_PID"
echo "🛑 Stopping dashboard..."
kill $DASHBOARD_PID
sleep 2
# Check if still running
if pgrep -f "python.*web_dashboard/app.py" > /dev/null; then
echo "⚠️ Process still running, force killing..."
pkill -9 -f "python.*web_dashboard/app.py"
sleep 1
fi
echo "✅ Dashboard stopped"
else
echo " No dashboard process found"
fi
echo "🚀 Starting dashboard..."
# Start dashboard in background
nohup python web_dashboard/app.py > logs/dashboard.log 2>&1 &
DASHBOARD_PID=$!
sleep 3
# Check if started successfully
if pgrep -f "python.*web_dashboard/app.py" > /dev/null; then
echo "✅ Dashboard started successfully (PID: $DASHBOARD_PID)"
echo "🌐 Dashboard available at: http://127.0.0.1:5001"
echo "📊 Sessions API: http://127.0.0.1:5001/api/agent/sessions"
# Test the API
echo "🧪 Testing sessions API..."
sleep 2
SESSIONS_COUNT=$(curl -s http://127.0.0.1:5001/api/agent/sessions | jq -r '.total // 0')
echo "📈 Sessions found: $SESSIONS_COUNT"
if [ "$SESSIONS_COUNT" -gt 0 ]; then
echo "🎉 SUCCESS: Dashboard integration working!"
else
echo "⚠️ No sessions found - check logs for issues"
fi
else
echo "❌ Failed to start dashboard"
echo "📋 Check logs: tail -f logs/dashboard.log"
exit 1
fi