Hi,
During development, I see the size of development.log / test.log is
increasing forever. Is it possible to set the limit of the size?
I see that I can run rake log:clear occasionally, but I just wanna
ignore the files where possible.
-T
Hi,
During development, I see the size of development.log / test.log is
increasing forever. Is it possible to set the limit of the size?
I see that I can run rake log:clear occasionally, but I just wanna
ignore the files where possible.
-T
You could always just have rake log:clear run automatically every so
often using a cronjob. That way you can ignore them, and they won’t get
too big.
For info on cronjobs:
http://www.aota.net/Script_Installation_Tips/cronhelp.php3
http://www.railsenvy.com/2007/6/11/ruby-on-rails-rake-tutorial#do_stuff
The second link is actually mostly about rake tasks, but its got a great
example of how to run a rake task with a cronjob.
Of course, there’s probably some better solution than mine, which I’m
sure someone else will post ![]()
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs