I believe there are several people who have done this and there are
several old threads regarding.
This is a completely doable thing.
I would suggest using a post commit script and while I don't use my
script to update a live website, I do use it to keep my scripts
repository updated. The theory is the same and would at least provide
you with an example. The script isn't as elegant as it could be, but it
works and I believe the logic is straight forward.
From: Linda Halligan [mailto:email@example.com]
Sent: Thursday, July 06, 2006 2:21 PM
Subject: Hook script questions
Please don't beat me with the RTFM stick. I've searched for a
few days now and I'm not able to find an answer to my question.
I'm setting up a new subversion instance. It will contain a
single repository with several projects. One of those projects is going
to be the source for a tomcat based website. I want the website to get
updated automatically only when the "website" project is updated. Since
I'm not a coder I'm not entirely sure how to go about doing that.
Is it possible to write a post-commit script that will execute
only if that portion of the tree has been changed?
If someone could point me to an example of how this could be
done I would be eternally grateful.
Received on Thu Jul 6 23:51:42 2006