# IT Site Survey AI - Operations Runbook ## Application Management ### Check Application Status ```bash ssh jcbeasley@192.168.50.11 "ps aux | grep python | grep app.py" ``` ### Check Application Port ```bash ssh jcbeasley@192.168.50.11 "ss -tulpn | grep 3003" ``` ### View Application Logs ```bash ssh jcbeasley@192.168.50.11 "tail -f /home/jcbeasley/.openclaw/workspace/Projects/site-survey-ai/app.log" ``` ### Restart Application ```bash ssh jcbeasley@192.168.50.11 "pkill -f 'python3 app.py' && cd /home/jcbeasley/.openclaw/workspace/Projects/site-survey-ai && source venv/bin/activate && nohup python3 app.py > app.log 2>&1 &" ``` ## Testing Endpoints ### Test Main Application ```bash curl -s http://192.168.50.11:3003/ ``` ### Test API Endpoint ```bash curl -s http://192.168.50.11:3003/api/surveys/responses | jq '.' ``` ### Test Dashboard ```bash curl -s http://192.168.50.11:3003/dashboard.html ``` ## File Locations - Main application: `/home/jcbeasley/.openclaw/workspace/Projects/site-survey-ai/app.py` - HTML files: `/home/jcbeasley/.openclaw/workspace/Projects/site-survey-ai/index.html` and `dashboard.html` - Memory files: `/home/jcbeasley/.openclaw/workspace/Projects/site-survey-ai/memory/` - Logs: `/home/jcbeasley/.openclaw/workspace/Projects/site-survey-ai/app.log` - Virtual environment: `/home/jcbeasley/.openclaw/workspace/Projects/site-survey-ai/venv/`