Subversion Hooks

April 19, 2005

I set up a Subversion hook that updates a local working copy, exports it to a clean directory, compiles it, and sets the IIS web directory. These deployment steps are set in a Nant build file that the Subversion post-commit hook executes. I noticed this drastically increased the commit time, so I needed a way to run the deployment task in the background. I did some looking around and found a way to initiate the Task Scheduler from the command line. schtasks /run /tn my_task_name goes in my post-commit hook, my commits are fast again, and my app is deployed to the dev server.