-
Notifications
You must be signed in to change notification settings - Fork 27.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Production deployment on AWS EC2 #1323
Comments
Similar to hosting pretty much any node program. The basic setup for any node app would be along the lines of: And then to make sure the next.js (or any node) app remains up, throw in a You might even want to wrap the node process to docker but to keep this short and simplified :D |
any related links/resources off the top of your head @jamo ? this is some great info though, thanks! |
also do I keep the app at |
I had hard time finding a great tutorial but combining these two (or just going with the digital ocean one) should guide you thru similar setup that I described in short:
And you probably want to keep the dev version and deployed/production version in different folders so that they could co-exist |
so could I run |
Also, using Amazon Linux, and can't seem to find |
was about to use Thanks for the help! |
I was developing the app on the remote EC2 server. So I have something like
ec2-user/nextjsapp/
and spinning up localhost:3000 was no problem, I'd listen on the remote IP at port 3000.Now I would like to publish it at a subdomain, without using a port (setting up port 80 to listen) but I am having trouble running
next start -p 80
after I donext build
within that folder.What is the process to get the bundled, production ready nextjs app running?
Thanks 😃
The text was updated successfully, but these errors were encountered: