I wonder what’s the best deployment directory for Rails apps? Some developers use directories such as /u/apps/#{appname}. Are there any advantages when using /u/apps/#{appname} instead of /var/www/#{appname} or other OS default directories?
Obviously I want to pick the directory with the best security properties and the least friction for setting up the server environment.
How do you deploy your Rails apps? Why are you using a specific directory? Do you think it really matters anyway?
As other people have said, it really doesn’t matter where you keep your applications – the thing that does matter is that you’re consistent about it, so that whichever server you’re on, its just a case of going to the usual location.
I think the only reason people use /u/apps/#{appname} is that it’s Capistrano’s default setting – certainly it seems odd to me doing things that way.