Skip to content
Shahid Malla

Node.js Apps and APIs

Node.js VPS Deployment with PM2 and Nginx

Your Node.js app running on your own VPS behind Nginx, with HTTPS, PM2 process management and graceful reloads.

Shahid Malla

Shahid Malla · Top Rated on Fiverr and Upwork
600+ Fiverr reviews, 4.9 average · 13+ years · 900+ projects

PM2NginxUbuntuLet's Encrypt

About this package

This package gets your Node.js app running on a VPS you own, behind Nginx with HTTPS, managed by PM2 so it restarts after a crash or reboot, for a developer or founder whose app works locally but has never lived on a server. The machine is from DigitalOcean, Hetzner, AWS Lightsail or a similar provider, opened in your name.

Server groundwork

I create a non-root user, switch SSH to key login, enable a firewall that allows only web and SSH traffic, and install a current Node.js release. The app runs under PM2 from an ecosystem file, with a startup script so it comes back on its own after a reboot. Nginx acts as the reverse proxy with gzip compression, a Let's Encrypt certificate that renews itself, and the upgrade headers WebSockets need if your app uses Socket.IO.

Deploys without downtime

From Business up, a deploy script pulls from Git, installs dependencies, builds, and reloads PM2 in cluster mode one worker at a time, so requests keep being served throughout. Environment variables live in a protected file on the server, logs rotate before they fill the disk, and an uptime check alerts you when the app stops answering.

  • Premium deploys automatically from GitHub Actions on each push to your main branch.
  • Premium runs staging and production side by side on the same server.
  • Premium installs your database with daily backups, plus Fail2ban and automatic security updates.

The handover test

The app answers over HTTPS on your domain, survives a reboot, and on Business and Premium a deploy from your repository completes while a request loop shows no errors. The runbook on Premium covers restarts, logs, renewals and restores. VPS, backup storage and domain bills go to those providers.

Compare packages

Package Starter$299 Business$799 Premium$1,799
PM2 with restart on reboot
Nginx and auto-renewing SSL
Firewall and SSH keys
Git deploy script –
Graceful cluster reloads –
Uptime alert –
Deploy on push ––
Staging environment ––
Database with daily backups ––
Delivery time 3 days6 days12 days
Revisions 235

What I need from you

After you pay, a project opens for your order. Send these there and the delivery clock starts.

  • A VPS in your name with root SSH access
  • Repository access and the commands that build and start your app
  • Environment variables shared through a password manager
  • Access to your domain's DNS settings
  • The port your app listens on and whether it uses WebSockets

About the developer

Shahid Malla

Shahid Malla

AI agent and AI chat developer, full-stack developer

Top Rated on Fiverr and Upwork

Based in
Kashmir, India
Experience
13+ years
Projects
900+ delivered
Languages
English, Hindi

I have built websites, WHMCS modules and web apps for clients since before AI coding tools existed. Today I build with AI-assisted tools and review every change myself, which is why fixed prices here are lower than an agency's for the same scope. I work while the US, Canada and Australia sleep, so each morning there is progress on your staging link.

Read my 600+ Fiverr reviews · Upwork profile · Portfolio · About me

Questions about this package

Should I use Docker instead of PM2?

For a single app on one server, PM2 is simpler to run and debug, and that is what this package sets up. Docker pays off when you run several services or want identical environments across machines. If your project already has a working Dockerfile, I can deploy with that instead.

Can you move my app off Heroku, Render or Railway?

Yes, with the platform move extra. I copy the app, environment variables and database, test it on the new server under a temporary address, then switch DNS. Add-ons such as managed Redis or email services are replaced or reconnected, and I list each one before starting.

What happens when the uptime alert fires?

You get an email or a message on the channel you choose, saying the app stopped answering. PM2 usually restarts a crashed process within seconds, so most alerts clear on their own; repeated alerts mean a real problem, and the logs on the server show what happened.

How ordering a package works

  1. 1

    Choose a plan

    Pick Starter, Business or Premium and pay once by card, PayPal or crypto. The price on the page is the price.

  2. 2

    Send your content

    A project opens for your order. Send your text, logo, photos and any logins I need there.

  3. 3

    I build it

    I build on a private staging link you can open on your phone, with updates as I go.

  4. 4

    Launch and handover

    After your approval the site goes live on your domain, and every login is yours.

One-time price, no monthly fee from me

You pay for the build once. Your domain and hosting are registered in your name and renewed with your hosting provider, who bills you directly. I add nothing on top, and the site keeps running whether or not you hire me again.

What I do not build

Gambling and adult websites, and sites that sell content without the rights to it. Need something not listed? Ask for a custom quote.

All node.js apps and apis · All package categories