# Mongrel and application's public path problem

**URL:** <https://www.ruby-forum.com/t/mongrel-and-applications-public-path-problem/164408>\
**Category:** Rails\
**Created:** [April 1, 2009, 2:43am UTC](https://www.ruby-forum.com/t/mongrel-and-applications-public-path-problem/164408 "2009-04-01T02:43:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![petrjanda](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/ee7513/32.png) [@petrjanda](https://www.ruby-forum.com/u/petrjanda)\
**Post date:** [April 1, 2009, 2:43am UTC](https://www.ruby-forum.com/t/mongrel-and-applications-public-path-problem/164408/1 "2009-04-01T02:43:45Z")

</div>

Hi all,

Im trying to fix a path problem. My app was developed while using  
fastcgi. When I did FileUtils.mkdir it created a new directory under the  
public directory in my application.

Now in production we use mongrel + mongrel\_cluster, BUT the directory is  
created in the application’s directory in “/usr/websites/myapp” instead  
of “/usr/websites/myapp/public”.

What do I have to do to fix this?

Petr
