Add web apps monitoring documentation and auto-restart cron job

- Created memory/web-apps-monitoring.md with status and restart instructions
- Set up cron job to check both sites every 10 minutes
- Auto-restarts any site that returns non-200 or times out
- Sends Telegram notification if restart occurs
This commit is contained in:
Matt Bruce 2026-02-18 11:11:38 -06:00
parent 31534090f3
commit e02147408a

View File

@ -0,0 +1,42 @@
# Web Apps Monitoring
## Active Sites
| Site | URL | Port | Purpose |
|------|-----|------|---------|
| Project Hub | http://localhost:3000 | 3000 | Task/idea tracking with Kanban |
| Blog Backup | http://localhost:3003 | 3003 | Daily digest & message backup |
## Auto-Restart Monitoring
**Cron Job:** `Monitor Web Apps - Auto Restart`
- **Frequency:** Every 10 minutes
- **Action:** Checks HTTP 200 status on both sites
- **On Failure:** Automatically restarts the down service(s)
- **Notification:** Telegram message if restart occurred
## Manual Restart
If both are down:
```bash
# Project Hub
cd /Users/mattbruce/Documents/Projects/OpenClaw/Web/gantt-board
npm run dev -- --port 3000
# Blog Backup
cd /Users/mattbruce/Documents/Projects/OpenClaw/Web/blog-backup
npm run dev -- --port 3003
```
## Check Status
```bash
curl http://localhost:3000
curl http://localhost:3003
```
## For Future AI Continuity
If this agent is replaced:
1. Run `openclaw cron list` to see monitoring job
2. Check `process list` for running dev servers
3. Restart manually if needed using commands above
4. Both projects are in `/Users/mattbruce/Documents/Projects/OpenClaw/Web/`