Ruby On Rails

Discussion about the Ruby on Rails Web Framework.

Rotating Mongrel Logs

Written by Ken Nordquist on May 6, 2008

I am working on a Rails application using Apache and Mongrel on a Linux (Fedora Core) box. I want to be able to rotate the Rails logs to prevent them from taking up too much disk space. I found a number of blog posts / articles which had complicated(ish) directions to halt the mongrels, move (rename) log files, and then restart the mongrels. I knew there had to be a simpler way to handle this using the operating system. After much searching I ran into this blog post by Mike Mangino: Log Rotation with Mongrel.

I use Vlad the Deployer ...

Short url : http://bit.ly/k2xr9W