-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart_dashboard.py
More file actions
35 lines (29 loc) · 950 Bytes
/
start_dashboard.py
File metadata and controls
35 lines (29 loc) · 950 Bytes
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
#!/usr/bin/env python3
"""
Quick start script for PipeGuard Dashboard
"""
import os
import sys
# Set up environment for demo
os.environ['SECRET_KEY'] = 'demo_secret_key_for_testing'
os.environ['DEBUG'] = 'False'
os.environ['GITHUB_TOKEN'] = 'demo_token'
os.environ['GITHUB_USER'] = 'demo_user'
os.environ['GITHUB_REPO'] = 'demo_repo'
try:
from app import app
print("🚀 Starting PipeGuard Dashboard...")
print("📊 Features: Real-time monitoring, AI analytics, performance insights")
print("🔗 Dashboard URL: http://localhost:8080")
print("⏹️ Press Ctrl+C to stop")
print("=" * 60)
app.run(
host='0.0.0.0',
port=8080,
debug=False
)
except KeyboardInterrupt:
print("\n👋 Dashboard stopped by user")
except Exception as e:
print(f"❌ Error starting dashboard: {e}")
print("💡 Make sure all dependencies are installed: pip install -r requirements.txt")