minsk-hackerspace / hackerspace.by

Website of Minsk Hackerspace (Ruby on Rails)
https://hackerspace.by/
11 stars 20 forks source link

Сделать ротацию логов #464

Closed tequilarusa closed 2 years ago

tequilarusa commented 4 years ago

Убрать debug режим и везде сделать production

abitrolly commented 4 years ago

@tequilarusa а какую проблему это решает?

k2m30 commented 4 years ago

там везде production

jekhor commented 4 years ago

Убрать debug режим и везде сделать production

да, там везде production

jekhor commented 4 years ago

@tequilarusa а какую проблему это решает?

у нас логи не ротируются, за полгода набегает полтора гигабайта.

k2m30 commented 3 years ago

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 оно?

jekhor commented 3 years ago

Похоже. Там вроде Паша что-то системными средствами сделал

пн, 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 .

k2m30 commented 2 years ago

done