Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Location of passenger log files in my ec2 instance (elastic beanstalk + rails)

I am trying to deploy a Rails application on Elastic Beanstalk. I'd like to be able to look at my web server log files (which should be Passenger) but I don't know where to find them in my ec2 instance. I was able to SSH into the instance, but I had no luck finding the files.

Thanks

like image 808
Renan Avatar asked Feb 04 '13 04:02

Renan


2 Answers

On Elastic Beanstalk ruby container you can find your application logs (passenger.log, production.log) at /var/app/support/logs/.

The files /var/log/eb-tools.log and /var/log/cfn-init.log are also useful for debugging deployment issues.

like image 169
fignuts Avatar answered Sep 28 '22 07:09

fignuts


I'd like to update this info. I am using Rails 4.1, and the log files were not in these locations. Instead, they were in /var/app/containerfiles/logs

like image 42
Eric Avatar answered Sep 28 '22 09:09

Eric