ruby - Rails logging error: "Error during failsafe response: Shifting failed." ... is there an elegant solution to this? -
I have configured my Rail2.38 logger in environment.rb to rotate the Roses:
< Pre> config.logger = Logger.new ("# {RAILS_ROOT} / log / # {RAILS_ENV} .log", 'daily')
and every morning in the morning Normal:
Error during failure response: transfer failed.
Is there a decent / elegant / better solution on this?
A Cron job is set up only to make a note of everything I have done when it happens
Thanks
The log file is very common on UNIX / Linux to use a program called Logrootate to run rotation. Please.
For fusion passenger deployment, you can use the configuration as the example below. Clearly adjust the directories and rotation frequency as appropriate.
/home/deploy/public_html/railsapp/shared/log/*.log {rotate weekly useless 30 seconds delay compress compressed notifempty sharescript touch / home / deployed / public_html / railsapp / current / tmp / restart .txt endcript}
Comments
Post a Comment