How to Deploy Nextjs app on Ubuntu server with GitHub Actions

preview_player
Показать описание
URL to install nvm:

💻 Dive into EC2, Lightsail, Linode, and Digital Ocean:
Whether you prefer the scalability of AWS EC2, the simplicity of Lightsail, the flexibility of Linode, or the ease of use with Digital Ocean, this tutorial caters to all. Discover the nuances of deploying on each platform, allowing you to choose what suits your project best.

🚀 GitHub Actions CI/CD Integration:
Streamline your deployment workflow with GitHub Actions CI/CD. Witness the magic of automating your deployment process, ensuring efficiency, reliability, and consistency in every release.

🔧 Optimize for Success:

📈 Who Is This Tutorial For?

👩‍💻 Hands-On, Practical Learning:
This tutorial isn't just theoretical; it's hands-on and practical. Follow along with the provided examples and real-world scenarios to solidify your understanding of the deployment process.

🚨 Don't Miss Out!

🌐 Links and Resources:

URL to install nvm

👀 Timestamps:
00:00 - Introduction
00:41 - Simple NextJs App Walkthrough
1:35 - AWS EC2 set up
9:23 - Connecting to the Ubuntu server from the terminal
13:26 -Creating a Github Action
20:28 -Adding Github Repository secret
21:36 -Creating workflows for deployment
28:30 -Pushing the first CI to Github & Testing the runner
32:47 -Installation of nvm and nodejs
35:30 -Installation of node process manager (pm2)
36:03 -Start Nextjs server using PM2 & Running the server
39:30 -Adding Automatic restart to the workflow file
42:34 -Debugging build failure & Finalization
48:50 -Outro

📌 Connect with me:

👍 Don't forget to like and subscribe
🙏 Thanks for tuning in! Share your thoughts in the comments below—let's keep the conversation going. 🌐
Рекомендации по теме
Комментарии
Автор

Hello guys, if you are running any next version below 14, you would use this command to start your application "pm2 start npm --watch pages --name "next" -- start -p 3000", I hope you liked it. Please like, share, comment and subscribe.

ikechukwupeter
welcome to shbcf.ru