X-Git-Url: https://git.njae.me.uk/?a=blobdiff_plain;f=config%2Fenvironments%2Fproduction.rb;h=a3f3c4a3f8d8efabb7c755f14155833bc0b40e1a;hb=b24d0db11b8a9b6815c0b235b77e557ea5993e35;hp=27119d2d18b413cdb697ac890555cef3853be24c;hpb=22d4a0d0027b52071d8c4242f4bd30eec2b036bf;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