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

Justin picture Justin · Jan 30, 2015 · Viewed 29.3k times · Source

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?

Answer

Manuel Darveau picture Manuel Darveau · Feb 11, 2015

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.