[nycphp-talk] Webserver file access (and version control)

Rob Marscher rmarscher at
Tue Aug 21 12:41:41 EDT 2007

On Aug 20, 2007, at 3:59 PM, Cliff Hirsch wrote:
>'s still an update and conflicts would be a bear to
> deal with in a production environment

You should check out Capistrano some time.  It pulls down the whole  
app from subversion into a new directory.  It then symlinks the  
current webroot to the new directory pulled from subversion.  You  
also keep files - like things users have uploaded - in a separate  
directory and symlink to that from your docroot too.  That way  
they're outside of the app directories.

What I like about this approach is that all the files still exist  
from the previous working state and if anything is wrong, you just  
switch the docroot symlink to point to the old directory - very quick  

Capistrano is a ruby app the allows automated scripting and parallel  
updates on multiple servers at the same.  Worth looking into before  
rolling out your own custom shell scripts. 

More information about the talk mailing list