2 Answers
- Newest
- Most votes
- Most comments
0
Aws Elastic Beanstalk does not allow running your Node.js app directly on the port 80.
I have solved my issue by adding Beanstalk config file to the project root: .ebextensions/app.config
option_settings:
aws:elasticbeanstalk:application:environment:
PORT: "8080"
And re-config my Node.js app to port 8080.
Now that is working inn the next way: I open app URL in browser -> Nginx gets request on port 80 and send in to myApp on 8080
P.S. Also need to add an inbound rule for port 8080;
answered 10 months ago
0
What steps did you take to deploy?
When compressing files, did you select and compress the files you needed as described in the following blog?
https://dev.classmethod.jp/articles/nodejs-application-deployment-on-elastic-beanstalk/
Relevant content
- Accepted Answerasked 6 months ago
- asked 9 months ago
- asked 2 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 4 months ago
I use CodePipeline configured on main branch my Github repo. No manually deploy