Rotating rails logs when using Phusion Passenger

I found a great post on Overstimulate about handling the rotation of rails logs when you use Phusion Passenger. Most of the data for your application should end up in the apache logs, but if your site is highly dynamic, you may end up with a giant production log if you’re not careful. Toss this into /etc/logrotate.d/yourrailsapplication: For a detailed explanation, see the post on Overstimulate.

2009-06-26 · 1 min · Major Hayden