Self-Host Next.js 15 on Ubuntu LTS with PM2 Cluster & Caddy
Production blueprint for hosting Next.js 15 standalone server on bare-metal Ubuntu with PM2 cluster mode, Caddy automatic HTTPS, and zero-downtime releases.
Architectural Highlights
NODE_ENV=production
PORT=3000
NEXT_TELEMETRY_DISABLED=1
HOSTNAME=0.0.0.0
npm ci --production=false
npm run build
pm2 reload ecosystem.config.js --update-env
Blueprint FAQ
How does PM2 reload without dropping user connections?
Serverfy triggers `pm2 reload`, which performs rolling process swaps: starting new worker processes and validating health before gracefully terminating old ones.
Deploy This Blueprint in Under 3 Minutes
Connect your VPS, select this blueprint, and deploy with automated SSL, systemd daemons, and zero downtime.