<p>I wonder what's the best deployment directory for Rails apps? Some developers use directories such as <code>/u/apps/#{appname}</code>. Are there <strong>any</strong> advantages when using <code>/u/apps/#{appname}</code> instead of <code>/var/www/#{appname}</code> or other OS default directories?</p>

<p>Obviously I want to pick the directory with the best security properties and the least friction for setting up the server environment.</p>

<p>How do you deploy your Rails apps? Why are you using a specific directory? Do you think it really matters anyway?</p>

I tend to create a dedicated user for each rails app I run and install, and add that user to the
```
www-data
```
group. So, I tend to have
```
/home/mephisto/www
```
,
```
/home/warehouse/www
```
and so on.
I do this purely for organization, and I don't think it matters much.