Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to realize automatic updating of project directory by SVN configuration under linux

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

Editor to share with you how to configure SVN under linux to automatically update the project directory. I believe most people don't know much about it, so share this article for your reference. I hope you will gain a lot after reading this article. Let's learn about it together.

Configure automatic update of hook file

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

Create a new file:

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

Add the following text:

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

After adding the permission of post-commit to be executable, the project file can be updated automatically after each submission.

To install the source code:

1. Download lrzsz-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 document inside for installation parameters instructions and details

3. Decompress the file

Tar zxvf lrzsz-1.12.20.tar.gz

4. Enter the directory

Cd lrzsz-1.12.20

5. Configure related options (installation location)

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

6. Compile make

7. Install make install

8. Set up a soft link (equivalent to a shortcut to windows)

Add the-s parameter to establish a soft connection, and no parameter to copy it directly to establish a hard link.

# cd / usr/bin (environment variable equivalent to windows in / usr/bin directory, where shortcuts are stored) # ln-s / usr/local/lrzsz/bin/lrz rz # ln-s / usr/local/lrzsz/bin/lsz sz

After the creation is successful, you can directly call this command by typing sz or rz command in any directory.

# / / if the file exists, delete it before creating a soft connection # ln-s-f / usr/local/lrzsz/bin/xxx xx#ln-- help / / more parameters view help above is all the contents of the article "how to configure SVN under linux to automatically update the project directory". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report