Skip to content

Instantly share code, notes, and snippets.

@wellington1993
Last active August 15, 2018 12:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wellington1993/1c45fe0a0b44f3fd55a9b803230e45d8 to your computer and use it in GitHub Desktop.
Save wellington1993/1c45fe0a0b44f3fd55a9b803230e45d8 to your computer and use it in GitHub Desktop.
Logrotate Rails
#
# File: /etc/logrotate.d/rails
# Test: logrotate -f /etc/logrotate.d/rails
#
/path/to/railsapp/log/production.log
/path/to/railsapp/log/development.log
/path/to/railsapp/log/unicorn.stderr.log
/path/to/railsapp/log/unicorn.stdout.log {
daily
dateext
missingok
rotate 3
compress
delaycompress
copytruncate
sharedscripts
notifempty
}
@wellington1993
Copy link
Author

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