linux SVN configuration to achieve the project directory automatic update and source installation method

  • 2020-06-23 02:37:40
  • OfStack

Configure hook files to be updated automatically

When the development environment submits updates to the server, each time in the server-side project directory, SVN up must be manually updated to access the latest update, and automatic updates can be achieved through hook file configuration

New file:


vim /usr/local/svn/demo/hooks/post-commit

Add the following text:


#!/bin/sh
export LANG=en_US.UTF-8
/usr/bin/svn update /var/www/html/demo --username dev1 --password 123456

Add post-ES14en permissions to make it executable so that the project file can be automatically updated after each submission

Source code installation steps:

1. Download ES19en-1.12.20. tar. gz from the following website

http://www.filewatcher.com/m/lrzsz-0.12.20.tar.gz.280938.0.0.html

2. Check the INSTALL documentation for installation parameters and details

3. Unzip the file

tar zxvf lrzsz-1.12.20.tar.gz

4. Enter the directory


cd lrzsz-1.12.20

5. Configuration options (Installation location)


./configure --prefix=/usr/local/lrzsz

6. Compile make

7. Install make install

8. Create soft links (equivalent to windows shortcuts)

The -ES51en parameter indicates the establishment of a soft connection, and the absence of a parameter indicates the establishment of a hard link by direct copy


#cd /usr/bin  ( /usr/bin Directory equivalent to windows Environment variable, which holds the shortcut) 
#ln -s /usr/local/lrzsz/bin/lrz rz 
#ln -s /usr/local/lrzsz/bin/lsz sz

This command can be invoked from any directory by directly hitting the sz or rz commands


#// If the file exists, delete it before creating the soft connection 
#ln -s -f /usr/local/lrzsz/bin/xxx xx
#ln --help // See Help for more parameters 

Related articles: