How to Deploy a Node.js App to Digital Ocean (Nginx, Ubuntu)

44,580
0
Published 2022-10-24
In this video I show you how to upload and deploy a node.js node app to digitalocean or any other VPS. We use Ubuntu Linux, Nginx, NodeJS and pm2 to deploy our application.

Having a hard time deploying your app? I'll do it for you, pain free:
codingwithcodebrah.com/deploy-4-me

If you liked this video please consider liking, commenting and subscribing to the channel!

CODE:
server {
server_name example.com www.example.com;

location / {
proxy_pass http://localhost:5000;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
}
}

Other Linux & Server Tutorials:
   • Linux & Server Tutorials  

Hire Me:
www.fiverr.com/ios_solutions/develop-your-ios-app-…

All Comments (21)
  • @bilalchami1
    Amazing tutorial. I spent the whole afternoon jumping between articles and documentations. Usually I prefer blogs and documentation over videos but none were complete as yours. Thanks 🙏🏼
  • @gercoyne
    One of the best tutorials I've watched on this or any topic. Thank you!
  • @vvan22
    It's amazing that you can remember all of those commands and parameters 🙌
  • @shivanshyadav1041
    Awesome video, this is my first time using DigitalOcean this video is to the point. Great Work 👍👍
  • @Chilenaz0o
    The best video i've seen explaining things like that .. straightforward Thanks!
  • Awesome video bro, I was struggling to get my backend up and running but your video saves my day. Thanks a lot.
  • @devAbelM
    Was really helpful never used nginx but was able to do what I needed. thanks
  • @zlackbiro
    This tutorial is amazing. I done everything on my VPS for the first time so smooth without any problems.
  • @MystikMasi
    Wow thank you so much! This tutorial saved me a lot of time and helped me to understand what I have to to to run my Server! The first time I got it runnngin my websockets didn't work because it uses ws instead of wss. Now everything is running perfect :) Thanks a lot!
  • Fantastic explanation, a literal lifesaver, incredibly useful, thanks so much bro / brah!
  • @iliassglitch
    This video is just perfect! Thank you so much <3
  • omg i watched a lot of tutorials none of them worked until i found this guy the best video ever im going to download it and watch it every fucking day thanks man i love u so much you have no idea how much you have helped me
  • @pyfinx
    really useful step by step guide to deploy on linux. thanks!
  • @MiSt3300
    Holy crap that actually worked! Thanks bro, you're the best! I need to finish watching this, I stopped at 12:49
  • @giansingh4710
    I LOVE YOUUUU. This was great. Thanks a lot. Saved me a bunch of time. lol