Closed tequilarusa closed 2 years ago
@tequilarusa а какую проблему это решает?
там везде production
Убрать debug режим и везде сделать production
да, там везде production
@tequilarusa а какую проблему это решает?
у нас логи не ротируются, за полгода набегает полтора гигабайта.
This is what you need in your config/environments/production.rb
Keeps the Last 5 log files which are rotated at every 10MB
config.logger = Logger.new(config.paths[“log”].first, 5, 10.megabytes)
@jekhor оно?
Похоже. Там вроде Паша что-то системными средствами сделал
пн, 1 лют 2021, 13.56 карыстальнік Mikhail Chuprysnki < notifications@github.com> напісаў:
This is what you need in your config/environments/production.rb
Keeps the Last 5 log files which are rotated at every 10MB
config.logger = Logger.new(config.paths[“log”].first, 5, 10.megabytes)
@jekhor https://github.com/jekhor оно?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/minsk-hackerspace/hackerspace.by/issues/464#issuecomment-770767693, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAA4VW5FMG43O6DMC5J43EDS42CG7ANCNFSM4PNUJQGQ .
done
Убрать debug режим и везде сделать production