-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart_dev_dashboard.sh
More file actions
executable file
·54 lines (44 loc) · 1.68 KB
/
Copy pathstart_dev_dashboard.sh
File metadata and controls
executable file
·54 lines (44 loc) · 1.68 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#!/bin/bash
# MeshAdmin Developer Dashboard Startup Script
# This script starts the unified development dashboard on port 5555
echo "🚀 Starting MeshAdmin Developer Dashboard..."
echo "============================================="
# Check if Python is available
if ! command -v python3 &> /dev/null; then
echo "❌ Python 3 is required but not found. Please install Python 3."
exit 1
fi
# Check if we're in the correct directory
if [[ ! -f "dev_dashboard.py" ]]; then
echo "❌ dev_dashboard.py not found. Please run this script from the correct directory."
exit 1
fi
# Check if virtual environment exists and activate it
if [[ -d "venv" ]]; then
echo "📦 Activating virtual environment..."
source venv/bin/activate
fi
# Install required dependencies if not already installed
echo "📋 Checking dependencies..."
python3 -c "import flask, psutil, requests" 2>/dev/null || {
echo "⚠️ Some dependencies are missing. Installing..."
pip install flask psutil requests
}
# Clear any existing processes on port 5555
echo "🧹 Clearing port 5555..."
lsof -ti:5555 | xargs kill -9 2>/dev/null || true
# Start the dashboard
echo "🌟 Starting developer dashboard on http://localhost:5555"
echo "============================================="
echo ""
echo "Features:"
echo " • Start/Stop/Restart all MeshAdmin services"
echo " • Real-time service status monitoring"
echo " • System resource monitoring"
echo " • Service logs viewing"
echo " • Port management"
echo " • Quick access links to running services"
echo ""
echo "Press Ctrl+C to stop the dashboard and all managed services"
echo "============================================="
python3 dev_dashboard.py