On a previous video on how to deploy a NextJS website to Ubuntu with NGINX and pm2, I left out how to deploy multiple websites on the same server, so in this video you'll learn what how to configure NGINX, pm2 and NextJS when setting up multiple sites on the same server instance.
-----------------------------
Deploy NextJS Website From Scratch: • Deploy NextJS Website From Scratch (w...
-----------------------------
Table of contents:
00:00 Why I made this video
03:26 Clone project folder from repository
04:22 Run chown (make user owner of project folder)
06:32 Copy previously generated nginx config file
07:59 Edit config file server_name, static folder path and port
11:56 Symbolic link between sites-available and sites-enabled
13:12 Restart NGINX
13:48 Install dependencies and build project
15:40 Start NextJS website with port flag
17:30 Install and configure SSL certificate