On Mar 21, 2006, at 10:42, MrBr @ GMail wrote:
> I want to update my web server with the newest revision after
> committing a revision.
> The problem is that keeping a working copy on the web server in not
> an option.
> There should be only the source code and nothing more.
> The web server is off site.
> The SVN server is windows+svn+Apache
So your repository server and your web server are two different
machines. No problem. In your post-commit hook, you could use "svn
export" to create an export of the HEAD of the repository, somewhere
on the repository server. You could then use rsync to send only the
relevant changes over to the web server. You would need to either do
this entire task before exiting the post-commit hook, which may take
some time and annoy your committers, or you need to spawn off another
task in the post-commit hook, but if you do that, you must handle
concurrency issues. (What happens if two people commit changes very
close together such that the second commit happens while the update
launched by the first commit is still running?)
That would work well on Linux/Unix/*BSD/OSX machines; unfortunately I
have no knowledge of what will or will not work on a Windows machine.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Mar 21 11:07:59 2006