X-Git-Url: https://git.njae.me.uk/?a=blobdiff_plain;f=config%2Fenvironments%2Fproduction.rb;fp=config%2Fenvironments%2Fproduction.rb;h=a3f3c4a3f8d8efabb7c755f14155833bc0b40e1a;hb=c210b7c26ce8bbde894733dc04d215d423b6418c;hp=27119d2d18b413cdb697ac890555cef3853be24c;hpb=f93204b41a8378389eb75b9215305fcc57145ac2;p=feedcatcher.git diff --git a/config/environments/production.rb b/config/environments/production.rb index 27119d2..a3f3c4a 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -15,6 +15,9 @@ config.action_view.cache_template_loading = true # Use a different logger for distributed setups # config.logger = SyslogLogger.new +# Rotate logs when the file grows to 10Mb, keep 10 old log files +config.logger = Logger.new(config.log_path, 10, 10.megabytes) + # Use a different cache store in production # config.cache_store = :mem_cache_store