- 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
43 lines
1.1 KiB
Markdown
43 lines
1.1 KiB
Markdown
# 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/`
|