Would it be good to backup the compressed log files off production server? Can we use backup gem for just that?
I have been thinking of implementing this since long back - finally implemented after reading this article.
Thanks for summing up this very well.
Oh, I see what you mean. You could do that just as well, no particular reason either way.
Add `this takes barely 5 minutes to read and complete` ;-). Concise badge. Also, your article should have a date on them (both created and updated); provides added insights as to potential gotchas from framework changes over time.
why not create a application specific log file and place it in the /etc/logrotate.d folder?
Thanks for the great guide.
Just in case anyone else gets this error:
error: skipping "$RAILS_DIR/log/development.log" because parent directory has insecure permissions (It's world writable or writable by group which is not "root") Set "su" directive in config file to tell logrotate which user/group should be used for rotation.
I was able to fix it by instructing the logrotate to run as the same user as my rails app (in my case deploy) instead of running as root:
su deploy deploy
Join 24,647+ developers who get early access to new screencasts, articles, guides, updates, and more.