Last active
August 15, 2018 12:54
-
-
Save wellington1993/1c45fe0a0b44f3fd55a9b803230e45d8 to your computer and use it in GitHub Desktop.
Logrotate Rails
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# 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 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
TO-DO:
https://medium.com/@atinders/easy-log-rotation-with-rails-5-7b8d3c173461