[COLUG] Method of Updating Remote Webservers

Rob Funk rfunk at funknet.net
Sun Mar 2 17:50:34 EST 2008


Josh wrote:
> For those of you with remote webservers: what methods do you use to
> make modifications?

At the lowest level, I use "rsync -av" to send the updates to the server.

I've been using a home-grown script I called "svn2prod" 
(subversion-to-production), which exports the project to a temporary 
directory, then rsync's it up to the server.

However, we're slowly transitioning to using the Ruby-based 
tool "capistrano", which was specifically designed for updating a project 
from revision-control up to a server.
  http://www.capify.org/

> Then I wondered about the trigger mechanisms for this.  I could always
> just login to the server and do a 'svn co' at the appropriate place. 

I don't like that, because giving your production server access to your 
code repository seems inherently insecure to me.  I prefer to push the 
updates from development to production, rather than pulling.

>   Then, I would have some
> applet running on my PC (or perhaps in Eclipse) that, when commanded to
> do so, would put a message on the queue, advising the server script to
> do a 'svn co'.

Why not just run a simple command on your workstation that does all the 
work?

-- 
==============================|   "A microscope locked in on one point
 Rob Funk <rfunk at funknet.net> |Never sees what kind of room that it's in"
 http://www.funknet.net/rfunk |    -- Chris Mars, "Stuck in Rewind"


More information about the colug432 mailing list