feat: add db-restore, maintenance, doctor scripts and update dashboard
This commit is contained in:
1 parent
a605807c69
commit
bd977da3a5
4 files changed
+55
No files matched your search
Executable
+17
@@ -0,0 +1,17 @@
|
||||
#!/usr/bin/env bash
|
||||
# System diagnostic tool
|
||||
echo "=== Doctor Report ==="
|
||||
echo "Checking Docker..."
|
||||
docker ps > /dev/null || echo "Error: Docker not running."
|
||||
|
||||
echo "Checking port 3002..."
|
||||
if lsof -i :3002 > /dev/null; then echo "Port 3002 is in use."; else echo "Port 3002 is free."; fi
|
||||
|
||||
echo "Checking .env..."
|
||||
if [ -f .env ]; then echo ".env exists."; else echo "Error: .env missing."; fi
|
||||
|
||||
echo "Checking health..."
|
||||
if curl -s http://localhost:3002/api/health > /dev/null; then echo "Health endpoint OK."; else echo "Health endpoint failing."; fi
|
||||
|
||||
echo "Disk usage:"
|
||||
df -h / | tail -n 1
|
||||
Reference in new issue
Block a user