Tagged with: Subversion svn tortoisesvn batch file hook
SVN configuration and automatic deployment to Apache virtual directory one, VISUALSVN Server service side and tortoisesvn client download VISUALSVN Download: http://subversion.apache.org/packages.html
You can find it at the bottom of the page (purple link)
TortoiseSVNDownload:Http://tortoisesvn.net/downloads.html
The place to download is very eye-catching, with 32-bit and 64-bit
Immediately following the language pack download
II. VISUALSVN Server and TORTOISESVN installation VISUALSVN installation:
choose to accept Next
Select Visual Server andmanagement Console and the Add Subversion command-linetools to the PATH environment variable, Point Next
Select Standard Edition
Location is the installation location
respositories is the place to develop the saved code later
Server Port is the port on which the server is requesting what port we are applying for 3690
default 443 or 8443 , we use 3690 can be
Use secure connection is the use of security links, usually development can not choose, security mechanism will make you feel bored, of course, you can choose
Point Next then Install can be installed
View Items: (In respositories Right-click to create a new respository (Project storage))
View administrator: (Right-click to add or remove administrators)
TORTOISESVN Installation:
Accept
Select All or change the installation directory:
Install
TortoiseSVN Language Pack Installation:
Next can be
TortoiseSVN Language Settings:
Select Settings
Select Chinese: (Uneasy Chinese language pack is not this one)
Third, automatically deploy the project to the Apache virtual directory
Right-click Project Location:-- > Select Properties (properties)
Select Hooks
Select Post-commit Hook
Tips: The post-commit Hook is an invoke after a commit. Svnruns this hook with the following ordered arguments:
[1] Repos-path
[2] REV
Translation: the hook triggers after the commit. Hooks are executed according to Repos-path,REV two parameters
Hooks are implemented using batch processing.
the command is: svn Update "D:\www\weixin"--quiet--username username--password password
You can put the command in the box
the first word in a command SVN to be C:\Program files\visualsvn Server\Bin also VISUALSVN Server the executable file under the installation directory, if you have configured the environment variable can be used directly SVN as a dos commands, not matching by the way.
"D:\www\weixin" to be Apache virtual directory for Project
To configure a hook using the call command for a batch:
Pager command can invoke another batch file, we fill in the box with the Call C:/svnupdate.bat
and then in c:/ new file under Svnupdate.bat , the code is svn Update "D:\www\weixin"--quiet--username username--password password can also be implemented Hook .
Configure play Hook can be later in SVN Storage of the project Hooks I saw a lot of them in the catalogue. Post-commit.bat Batch File
can read Hooks under the directory Post-commit.tmpl documents to further study Hook
SVN configuration and automatic deployment to Apache virtual directory