Railsのログをローテーションする
logrotateを使う。
/etc/logrotate.d/app を作成。
/home/apps/app/current/log/production.log {
daily
missingok
rotate 1000
notifempty
copytruncate
create 0666 apps apps
dateext
}
logrotateを使う。
/etc/logrotate.d/app を作成。
/home/apps/app/current/log/production.log {
daily
missingok
rotate 1000
notifempty
copytruncate
create 0666 apps apps
dateext
}