Загрузка...

Deploy Next.js like a PRO on Ubuntu 24.04 with Nginx & PM2

Are you ready to deploy your Next.js application to production?
In this video, I’ll walk you through how to deploy a Next.js app on Ubuntu 22.04, using PM2 to manage your Node.js process and Nginx as a reverse proxy.

We’ll go step-by-step — from setting up the server, installing Node.js, cloning a Next.js project, configuring Nginx, to running the app in production mode.
No shortcuts, no confusion — just clean, real-world deployment.

✅ What you'll learn:
➡️ Updating and preparing an Ubuntu server
➡️ Installing Node.js with NVM
➡️ Cloning and setting up a Next.js project
➡️ Managing the Next.js app with PM2
➡️ Configuring Nginx to serve the app
➡️ Testing and verifying everything works

📌 Resources Used:
🔗 Resources: https://docs.google.com/document/d/1QMjJ73d5NPcciHxvx1EUoKCr9oMFvyr_EkM3z9qXcEk/edit?usp=sharing
Weather API: https://home.openweathermap.org/users/sign_up
Attribution: Weather data provided by OpenWeather (https://openweathermap.org/)
Licensed under CC BY-SA 4.0.
🔗 Repo link: https://github.com/k8snative/nextjs-weatherapp
📌 Join the Community:
💬 Have questions? Drop them in the comments!

🔔 Don't forget to subscribe for more DevOps tutorials!

Timelines:
00:00 - Problem and the solution.
00:15 - Topics in this video.
00:30 - Introduction.
01:50 - Creating EC2 Instance.
05:13 - Installing Nodejs using nvm.
06:15 - Clone the NextJS (weather-app) from Github.
10:10 - Setup the app on EC2 using PM2.
13:06 - Install and configure Nginx in reverse proxy.
15:17 - Understanding Nginx reverse proxy configuration.
19:29 - Testing and verifying the NextJs app.
20:30 - Conclusion

#nextjs #ubuntu #nginx #pm2 #deployment #devopstutorial #devops #aws #cloudcomputing #ec2

Видео Deploy Next.js like a PRO on Ubuntu 24.04 with Nginx & PM2 канала Farrukh Fida
Яндекс.Метрика
Все заметки Новая заметка Страницу в заметки
Страницу в закладки Мои закладки
На информационно-развлекательном портале SALDA.WS применяются cookie-файлы. Нажимая кнопку Принять, вы подтверждаете свое согласие на их использование.
О CookiesНапомнить позжеПринять