Log rotation with mod_rails/passenger

/etc/logrotate.d/rails
Inside that file put the following
/path/to/your/app/shared/log/production.log {
daily
rotate 7
compress
missingok
sharedscripts
postrotate
touch /path/to/your/app/current/tmp/restart.txt
endscript
}

Short URL for this post: http://tmblr.co/ZM2Vby3Smr3