Full Node.js Deployment - NGINX, SSL With Lets Encrypt
Why Stack Overflow recommends it
Stack Overflow users link it when someone needs an end-to-end walkthrough for hosting a Node.js or React app on a Linux VM with PM2, NGINX and SSL.
Recommended by 3 people across 3 different months, 2020 to 2022.
What it is
A Traversy Media tutorial that walks through a full Node.js deployment on a DigitalOcean Ubuntu droplet. It covers running the app with PM2, putting an NGINX reverse proxy in front, and adding a free Let's Encrypt SSL certificate. The commands are available in a linked gist.
What people said
Recommends user8737957 · 2020-05 · Stack Overflow · on “How does a react app can be set up on server”
There are a lot of configurations you will have to do when you deploy your application on a server. Building the app, Nginx, pm2 and even ssl certification. This video is 20min and has all you need. [this video]
Recommends Ringolds · 2020-12 · Stack Overflow · on “How to point Subdomain to Nodejs backend?”
If you are fine with exposing the port, simply make an A record and point it to the IP. If you don't want to expose the port, you need to put a reverse proxy in front of your server, for example, Nginx or HAProxy. Here's a tutorial on how to use Nginx as a reverse proxy for your Node.js app: [this video]
Recommends LAVISH GOYAL · 2022-03 · Stack Overflow · on “How to host a Node.js app on AWS EC2 Ubuntu free tier?”
you should refer to this video (from Brad Traversy) where he deploys the Nodejs application on DigitalOcean droplet using pm2, but for deploying on AWS EC2 you can follow the exact same steps as both use the Ubuntu OS, NGINX and pm2 for configuring the application. NODEJS DEPLOYING TUTORIAL [this video]
Cites chewing gum · 2022-03 · Stack Overflow · on “CI/CD for Bitbucket to Azure Virtual Machine”
I already had a Nodejs App with MongoDB deployed on Azure VM. (I followed the [this video] ) Currently, I manually update the branch using git pull and then pm2 restart app.ts . How do I implement CI/CD from the bitbucket to trigger my VM for automated update?