12 أسطر
341 B
Bash
12 أسطر
341 B
Bash
#!/bin/bash\
|
|
# Runs the background monitoring loop (monitor.py) and serves the
|
|
# dashboard + monitor_data.json over HTTP at the same time.
|
|
|
|
set -e
|
|
|
|
# Start the monitor in the background; it updates monitor_data.json every 60s
|
|
python monitor.py &
|
|
|
|
# Serve the current directory (dashboard.html + monitor_data.json)
|
|
python -m http.server 8080
|