Deploying a NestJS backend to production with true zero downtime is more involved than most guides suggest. This is a complete, battle-tested walkthrough — built from real production experience — covering everything from Droplet setup to automated GitLab pipelines that deploy without dropping a single request.

Stack:

Server: DigitalOcean Droplet (Ubuntu 24.04)

Runtime: Node.js v18

Process Manager: PM2 (cluster mode)