by
back

configure logrotate for your ruby on rails app

To enable logrotate for your ruby on rails app, just create a file under /etc/logrotate.d

yourappname

/home/deployer/apps/yourappname/shared/log/*.log {
  weekly
  missingok
  rotate 52
  compress
  delaycompress
  notifempty
  copytruncate
}

your logfiles will now automatically rotate weekly



comments powered by Disqus