In the SVN repository directory there is a hooks directory, the following a post-commit.cmd file, the code is submitted to the warehouse, automatically checkout to the specified directory. @echo on
SET repos=%1
SET user=%2
SET svn= "C:/Program files/visualsvn server/bin/svn.exe"
SET dir= "D:/webroot"
(Call%svn% update%dir%--username root--password root--non-interactive)Note that the backslash D:\webroot in the path is changed to a forward slash d:/webrootsvn = "C:/Program files/visualsvn server/bin/svn.exe" is the actual location of the SVN server program.
After the warehouse is created, set the SVN name address as that. Change the cost of the LAN IP, the port to 8080 or other, avoid and Apache and other application port conflicts. If you need to set Post-commit hook Automatic Update code, do not check HTTPS, try to check, due to certificate issues, unable to perform post-commit reference: https://www.tomred.net/devops/ Svn-error-resolving-case.html
Windows SVN post-commit Error resolution error resolving case