Deployment
The production VPS topology and release procedure.
#Topology
The release directory is /var/www/overweight. PM2 runs overweight-web on 0.0.0.0:9735 and overweight-engine as a separate worker. A TLS reverse proxy should terminate public traffic.
#PM2
cd /var/www/overweight
npm ci
npm run build
pm2 start ecosystem.config.cjs
pm2 save
pm2 status#Persistent data
OVERWEIGHT_ENGINE_DB_PATH is /var/lib/overweight/overweight-engine.sqlite. The directory must be writable by the service user and must not be replaced by a release.
#Release checks
Run data audit, typecheck, lint, tests, build, real engine-cycle verification, browser QA, then inspect production status.