Nikola Stojaković
Nikola Stojaković

Reputation: 2305

How to check logs for Rails application on Unicorn and Nginx?

I'm facing issue with one part of application which doesn't exist when I run application from production environment on localhost but there are no logs presented in /log folder.

Application is running on DigitalOcean with Debian 8 droplet.

Upvotes: 1

Views: 5196

Answers (2)

Aaron Gray
Aaron Gray

Reputation: 11703

If you are looking for the nginx logs on your development environment on Mac OS X, and you installed nginx with homebrew, the logs will be located at /usr/local/var/log/nginx.

Upvotes: 1

Alex Kojin
Alex Kojin

Reputation: 5204

Open config/environments/production.rb file and change

config.log_level = :info

to

config.log_level = :debug

Too set config.consider_all_requests_local to true to get full error message.

Upvotes: 1

Related Questions