Skip to content

Instantly share code, notes, and snippets.

@gigorok
Forked from constantinoneto/rails.logrotate
Created March 19, 2018 18:01
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save gigorok/8072f2adb559a202ca470975aeb75506 to your computer and use it in GitHub Desktop.
Save gigorok/8072f2adb559a202ca470975aeb75506 to your computer and use it in GitHub Desktop.
Logrotate for Rails
#
# File: /etc/logrotate.d/rails
# Test: logrotate -f /etc/logrotate.d/rails
#
/var/www/*/log/*.log {
daily
dateext
notifempty
missingok
rotate 30
compress
delaycompress
copytruncate
sharedscripts
}
@AknEp
Copy link

AknEp commented Nov 2, 2018

It saved my time +1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment