diff --git a/CLAUDE.md b/CLAUDE.md index e1675617..2d45654d 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -121,7 +121,28 @@ Action types: `file-edit`, `database`, `architecture`, `config`, `security`, `va **Human approval required**: Architectural changes, DB schema, security, values content **Quality standard**: World-class, no shortcuts, no fake data +### Process Management: systemd (NOT pm2) + +**Production**: `tractatus.service` (systemd service on vps-93a693da.vps.ovh.net) +**Development**: Run via `npm start` (local development) or `tractatus-dev.service` (systemd) + +**Key Commands**: +```bash +# Production status/control +ssh -i ~/.ssh/tractatus_deploy ubuntu@vps-93a693da.vps.ovh.net "sudo systemctl status tractatus" +ssh -i ~/.ssh/tractatus_deploy ubuntu@vps-93a693da.vps.ovh.net "sudo systemctl restart tractatus" +ssh -i ~/.ssh/tractatus_deploy ubuntu@vps-93a693da.vps.ovh.net "sudo journalctl -u tractatus -f" + +# Install/update systemd services +./scripts/install-systemd.sh prod # Production +./scripts/install-systemd.sh dev # Development (requires sudo password) +``` + +**Service Files**: `systemd/tractatus-prod.service`, `systemd/tractatus-dev.service` +**Security**: NoNewPrivileges, PrivateTmp, ProtectSystem=strict, 2G memory limit +**Auto-start**: Enabled on boot via `systemctl enable` + --- -**Last Updated**: 2025-10-09 (Added automated CSP validation to pre-action-check.js) +**Last Updated**: 2025-10-09 (Migrated from pm2 to systemd, added automated CSP validation) **For full details**: See CLAUDE_Tractatus_Maintenance_Guide.md diff --git a/public/index.html b/public/index.html index 71a933d4..a8b065b0 100644 --- a/public/index.html +++ b/public/index.html @@ -5,7 +5,7 @@