How to Host Multiple Node Apps with nginx and pm2

preview_player
Показать описание
In this tutorial i'll show you how to host multple Node apps on a single serverwith nginx and pm2.

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:

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.

#nodejs #nginx #digitalocean
Рекомендации по теме
Комментарии
Автор

Thank you. No fluff, clear instructions. Got it running on the first try.

RickMeijer
Автор

Quick, concise, and clear! Thank you heaps

jupo.
Автор

Hey James,
Thanks a lot for creating this video.

zoki
Автор

Very clear explanation, thanks a lot.

AlfredoCelso
Автор

This is a great topic. All apps seem to run on port 80

davidemmanuel
Автор

wasn't working for me until I put the / at the end of my proxypass -_-

netsaosa
Автор

On the page with text descriptions..

Change to this:

sudo systemctl reload nginx

Since this sudo "sudo systemctl nginx reload" give an error.

janstergaard
Автор

Have a problem how get another folder file😕 Please advise.

sriphagaaruchtsrinhichaarn
Автор

Dear Codebubb,
The first thank big for you.
I had problems.
- after install nodejs, npm, pm2
- when i action: pm2 list -->Spawning PM2 daemon with pm2_home=/home/vietk/.pm2
and pm2 start app.js -->Spawning PM2 daemon with pm2_home=/home/vietk/.pm2 --> it can not show table as you was worked.
I had tried many method( install Os Ubuntu 22.04, install nodejs..., but it still have problems as above
Can you and everybody help me!
Thnak you so much.

hoatranquang