How To Deploy NextJS With Nginx and PM2

43,955
0
Published 2022-10-16

All Comments (21)
  • @yash1o1
    Just amazing!!! Helped me a ton. Thank you :)
  • @LachCrafter
    thank you so much! It was my dream to have a system like that! Keep it up!
  • I have server side to my nextjs app with api folder and the frontend is not being able to access the endpoint in pm2 next js; how do I resolve that?
  • @jeff6555
    It's probably very obvious to anyone that has already set up their environment in the past, but the test connection at 10:13 will fail unless you've added your public key to your github account.
  • @ianvieira283
    Can i ask you something? My nextjs app is running just fine, but everyday at 05:00 some "check status" runs in my t2.micro and get "1/2 verified status", and it gets "down", do you know what it would be? :/ everyday at determinated time.... 05:00 or 06:00
  • @arturfil
    really good video! I have a question though, is there a potential risk of having the .pem file at the level of the project? Shouldn't we avoid that and if not, obviously we would put that in the .gitignore file but just wondering how to go about this.
  • I only have 1 last step left but I get an error when Permission denied (publickey).
  • @forrestm.1968
    This helped me tremendously! I got my application deployed. Does anyone know how to set up your environment variables in production? I'm using an EC2 instance like the video to host my application.
  • @gonzalogdv
    Great video! Thank you! Which is the proper way to bring changes in GitHub repository to production?