---
title: "Discussion on \"How I Deployed a Full-Stack Application on a DigitalOcean VM Using Nginx and PM2\" | Hashnode"
description: "Discussion on \"How I Deployed a Full-Stack Application on a DigitalOcean VM Using Nginx and PM2\". Learn how to deploy a full-stack app on a DigitalOcean VM using Nginx as a reverse proxy, PM2, Node.js, React, and Ubuntu."
url: "https://hashnode.com/posts/how-i-deployed-a-full-stack-application-on-a-digitalocean-vm-using-nginx-and-pm2/6a58ed9e740950f1e64603ca"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How I Deployed a Full-Stack Application on a DigitalOcean VM Using Nginx and PM2](https://shubhamsinghbundela.hashnode.dev/how-i-deployed-a-full-stack-application-on-a-digitalocean-vm-using-nginx-and-pm2?utm_source=hashnode&utm_medium=feed)

Learn how to deploy a full-stack app on a DigitalOcean VM using Nginx as a reverse proxy, PM2, Node.js, React, and Ubuntu.

Jul 16 · 15 min read · shubhamsinghbundela.hashnode.dev  
Read the article

-   [#digitalocean](https://hashnode.com/tag/digitalocean)
-   [#nginx](https://hashnode.com/tag/nginx)
-   [#pm2](https://hashnode.com/tag/pm2)
-   [#nodejs](https://hashnode.com/tag/nodejs)
-   [#reactjs](https://hashnode.com/tag/reactjs)
-   [#vite](https://hashnode.com/tag/vite)
-   [#ubuntu](https://hashnode.com/tag/ubuntu)
-   [#devops](https://hashnode.com/tag/devops)
-   [#deployment](https://hashnode.com/tag/deployment)
-   [#full-stack-development](https://hashnode.com/tag/full-stack-development)
-   [#software-development](https://hashnode.com/tag/software-development)
-   [#virtual-machine](https://hashnode.com/tag/virtual-machine)
-   [#ssh](https://hashnode.com/tag/ssh)
-   [#ssh-keys](https://hashnode.com/tag/ssh-keys)
-   [#reverse-proxy](https://hashnode.com/tag/reverse-proxy)
-   [#cloud-computing](https://hashnode.com/tag/cloud-computing)
-   [#web-development](https://hashnode.com/tag/web-development)

## Written by

[Shubham Kumar Singh](https://hashnode.com/@shubhamsinghbundela)

@shubhamsinghbundela · India

  
[View profile](https://hashnode.com/@shubhamsinghbundela)

Problem Solver | Full Stack Developer

I'm Shubham (@shubhamsinghbundela), I'm a Software Engineer, a Full-stack developer, a tech enthusiast, and a technical writer here on @Hashnode. I have a strong zeal to share my acquired knowledge and I am also willing to learn from others.

## Responses 3

Markdown supported · ⌘↵ to post

[CDN Edge Ops](https://hashnode.com/@cdnedgeops)

[Oct 30](https://hashnode.com/posts/how-i-deployed-a-full-stack-application-on-a-digitalocean-vm-using-nginx-and-pm2/6a58ed9e740950f1e64603ca/comment/6ae51fdbac3dd9a37fc2fdd0)

Reverse proxy checklist I use with PM2: proxy\_set\_header Host and X-Forwarded-Proto, a dedicated upstream block, and proxy\_read\_timeout sized for the slowest API. Confirm the Node process is listening before blaming nginx.

[GUNUPURU SURAJ](https://hashnode.com/@suraj-9849)

[Jul 16](https://hashnode.com/posts/how-i-deployed-a-full-stack-application-on-a-digitalocean-vm-using-nginx-and-pm2/6a58ed9e740950f1e64603ca/comment/6a593b3ad281272d190b92cb)

I guess u leaked your ssh key

[Shubham Kumar Singh](https://hashnode.com/@shubhamsinghbundela)

[Jul 17](https://hashnode.com/posts/how-i-deployed-a-full-stack-application-on-a-digitalocean-vm-using-nginx-and-pm2/6a58ed9e740950f1e64603ca/comment/6a593b3ad281272d190b92cb#reply-6a59b6488d5a4855831229ad)

i.e. public key no worries and I delete droplet also
