diff --git a/memory/web-apps-monitoring.md b/memory/web-apps-monitoring.md new file mode 100644 index 0000000..a35c6e6 --- /dev/null +++ b/memory/web-apps-monitoring.md @@ -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/`