How can I configure SVN to deploy when I commit? I would like to deploy when I commit
Svn – How to configure SVN to deploy when I commit
deploymentsvn
deploymentsvn
How can I configure SVN to deploy when I commit? I would like to deploy when I commit
Best Answer
You need to modify the post commit hook. Placed here:
Change it's name (or create a new one and save that one for future reference) to:
Then
chown
it andchmod
it let your svn user (tipicallyapache
) execute that file:Assuming you want to export your repo's trunk to a local path, here is what I use to automatically deploy to my testing server, which is also my SVN repo server (I do not recommend using this to deploy to production servers, use a custom script for that). This will look for a
**DEPLOY**
tag in your commit message and deploy only if that's the case.