simpatico

Operations

Scripts and docs for deploying and operating simpatico in production.

All shell scripts are idempotent — safe to run multiple times.

Scripts

Script Purpose
provision.sh One-time Ubuntu 24 VPS setup. Creates users, hardens SSH, installs Node.js and certbot, and configures systemd.
deploy-remote.sh Deploys code updates. Pulls latest, runs npm install if needed, restarts the service.
sync-config.sh Copies server.config.json to the remote server.
upgrade-node.sh Upgrades Node.js with automatic rollback if the service fails to start.
fix-certs.sh Switches existing certbot certs from standalone to webroot and tests renewal.
check-document-roots.sh Verifies each configured documentRoot is readable by the service user and fixes permissions (e.g. 0750 home directories).

Configuration

Docs