How to Host Multiple Node Apps with nginx and pm2
In this tutorial i’ll show you how to host multple Node apps on a single serverwith nginx and pm2.
Read the article here: https://codebubb.com/posts/how-to-host-multiple-node-apps/
Get $200 free Digital Ocean credit using this link! https://www.juniordevelopercentral.com/digitalocean
00:00 Intro
00:30 What you’ll need
00:45 Setting up the 1st Node app
01:50 Using PM2
02:45 nginx reverse proxy
05:03 Adding a 2nd Node app
As mentioned at the start of the video, some extra help getting you set up if you don’t have nginx, node and pm2 installed:
– Nginx installation https://youtu.be/3K-pCTW6oR4
– Node.js installation https://youtu.be/DJHdeqxTL-w
– PM2 installation https://youtu.be/8j9V7x24k08
OK so this was actually a viewer’s question from a previous video that dealt with how to add a new SSH key to an old server.
The question was asking how to host multiple Node apps on one server/IP so this video will show you how to use nginx, PM2 and of course Node.js to create multiple apps all running under the one domain.
#nodejs #nginx #digitalocean