Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where does elastic beanstalk t2 server store my node.js app files?

From an architecture perspective I'm trying to get a better understand of how and where files deployed to eb (t2) server are stored.

I see some .zip files in s3 that show when I upload something via the eb interface, though how/where exactly does this get end up on my ec2(t2) server?

like image 841
Justin Avatar asked Jan 30 '15 21:01

Justin


People also ask

Where does Elastic Beanstalk store application files?

In Elastic Beanstalk, where does it store the application files and server log files? Application files are stored in S3. The server log files can only be stored in the attached EBS volumes of the EC2 instances, which were launched by AWS Elastic Beanstalk. Application files are stored in S3.

Does Elastic Beanstalk support node JS?

Elastic Beanstalk provides platforms for programming languages (Go, Java, Node. js, PHP, Python, Ruby), application servers (Tomcat, Passenger, Puma), and Docker containers.

Does Elastic Beanstalk run NPM install?

When a package. json file is present, Elastic Beanstalk runs npm install to install dependencies. It also uses the start command to start your application.

Is Elastic Beanstalk an application server?

AWS Elastic Beanstalk is an easy-to-use service for deploying and scaling web applications and services developed with Java, . NET, PHP, Node. js, Python, Ruby, Go, and Docker on familiar servers such as Apache, Nginx, Passenger, and IIS.


2 Answers

It's in the /tmp/deployment/application folder during deployment and the moved to /var/app/current afterward.

In case you search them, the node logs are in /var/log/nodejs/nodejs.log and the application will bind to 8081 no matter what PORT environment variable you set in the Environment Variables in the console.

like image 53
Manuel Darveau Avatar answered Sep 27 '22 19:09

Manuel Darveau


The top answer seems to be still working in November of 2020 for node app (nuxt app in my case)

/var/app/current 
like image 30
atazmin Avatar answered Sep 27 '22 19:09

atazmin