I am running VisualSVN Server on my server, and I have TortoiseSVN installed on both my dev PC and my server.
I want to be able to push through updates to the website over SVN without manually checking out the latest version on htdocs.
How can I have TortoiseSVN on my server automatically checkout the latest revision of the site when I commit a new revision?
I would recommend looking at CruiseControl.net, then configuring it as follows:
This has two important effects:
Information about setting up CruiseControl.net and Subversion:
Information about setting up CruiseControl.net to publish files:
Information about setting CruiseControl.net to trigger when you make a commit:
If you have TortoiseSVN installed on your web server, first do a manual checkout to the pertinent path, then create a batch file (or just schedule an advanced task if on 2008) containing the following (adjust paths as necessary):
Then set the period you need (5 mins, 10 mins etc).
Use a post-commit hook script.
e.g. This post-commit.bat assumes that C:\Inetpub\Blah is a working copy and updates it every time a commit occurs:
you will probably have to do an svn export because the hidden .snv/_svn directories contain copies of the files and if the site is not precompiled will really mess up the aspnet_compiler. svn export does not create the hidden directoies. If you want to script this you should use something like SlikSvn which gives you command line access to your Subversion repository. Hope this helps.