SubVersion update on commit
Posted by: Gimpy
Posted on: 2006-05-29 19:58:00
Alright, I've read many other forums touching on this, but none pertaining directly to dreamhost and none with a solution that worked for me.
I want to use subversion to administer website development, but I want to set it up so that every time a developer commits, it updates the files on a development web server. This is to be done with post-commit, which is run after a user uploads changes.
Here is what I have in post-commit:
REPOS="$1"
REV="$2"
/usr/bin/svn update /home/_______/dev._______.com
When I created the svn working copy with svn checkout file:///home/_______/svn/_______/ /home/_______/dev._______.com
My problem is that because the scripts are run as the "dhapache" user, it won't update my working copy. Suggestions? Any help is greatly appreciated