Preventing Rails from opening production.log, when it is deployed with jruby-rack into tomcat.

Posted by gregor on Stack Overflow See other posts from Stack Overflow or by gregor
Published on 2010-04-14T09:51:02Z Indexed on 2010/04/14 9:53 UTC
Read the original article Hit count: 372

Filed under:
|
|
|

I have to to deploy a Ruby on Rails application to an tomcat application server using jruby-rack. Due to security reasons my customer has the webapps directory mounted read only and he won't changed this. The problem that arises is, that the rails logger wants to open the WEB-INF/log/production.log in write mode. He writes nothing to this file because log4j and friends are configured and working, but rails complains that the file is not readable.

Are there any suggestions from preventing rails from opening this file?

© Stack Overflow or respective owner

Related posts about jruby

Related posts about jruby-rack