SYNC_CHECKLIST.mdā¢2.72 kB
# MCP Brain Service - Git Sync Checklist
## Current Status Summary
### ā
What's Working
1. **Service Running**: PM2 process is online and healthy
2. **Port Listening**: Port 8002 is active
3. **Health Check**: API responding correctly
4. **Nginx**: Properly configured and SSL enabled
5. **Domain**: brain.ft.tc is accessible
### š What Needs Attention
#### Git Repository
- Modified: `.gitignore` (added venv/ exclusion)
- Untracked: `ecosystem.config.js` (PM2 config)
- Untracked: `RELOCATION_COMPLETE.md` (documentation)
- Untracked: `SERVICE_SEPARATION_REPORT.md` (documentation)
- Untracked: `MCP_BRAIN_SERVICE_STATUS.md` (documentation)
---
## Action Items
### Option 1: Commit Everything (Recommended)
```bash
cd /var/www/mcp-brain-service
# Add all important files
git add .gitignore
git add ecosystem.config.js
git add MCP_BRAIN_SERVICE_STATUS.md
git add RELOCATION_COMPLETE.md
git add SERVICE_SEPARATION_REPORT.md
# Commit
git commit -m "Add PM2 config, update .gitignore, and add documentation"
# Push to remote
git push origin master
```
### Option 2: Selective Commit
```bash
cd /var/www/mcp-brain-service
# Add only essential files
git add .gitignore
git add ecosystem.config.js
# Commit
git commit -m "Add PM2 ecosystem config and update .gitignore for venv"
# Push to remote
git push origin master
# Optionally remove documentation files if not needed
rm RELOCATION_COMPLETE.md SERVICE_SEPARATION_REPORT.md MCP_BRAIN_SERVICE_STATUS.md
```
---
## PM2 Configuration Verification
### Current PM2 Status
```
ā
Process: mcp-brain-service (PID: 24028)
ā
Status: Online
ā
Config: ecosystem.config.js exists
```
### Ensure PM2 Persists on Reboot
```bash
# Generate startup script (run once)
pm2 startup
# Save current process list
pm2 save
```
---
## Nginx Configuration Verification
### Current Nginx Status
```
ā
Config File: /etc/nginx/sites-available/brain.ft.tc.conf
ā
Enabled: Symlinked in sites-enabled
ā
SSL: Let's Encrypt certificate active
ā
Proxy: Forwarding to localhost:8002
ā
Test: nginx -t passes
```
### No Action Needed
Nginx is properly configured and working.
---
## Quick Verification Commands
```bash
# Check git status
git status
# Check PM2 status
pm2 list
# Check service health
curl http://localhost:8002/health
# Check nginx config
sudo nginx -t
# Check port
netstat -tlnp | grep 8002
# Check external access
curl https://brain.ft.tc/health
```
---
## Summary
**Git Sync**: Needs commit and push
**PM2 Config**: ā
Working, needs to be committed
**Nginx Config**: ā
Working perfectly
**Recommended Action**: Commit the ecosystem.config.js and updated .gitignore to ensure the PM2 configuration is version controlled.