Svn combined with rsync code publishing system, svnrsync
Submitted by development to the test environment, tested, and released in a unified manner by O & M. The test requires a test server and an online (production environment) server. Svn running
Svn combined with rsync code Publishing System
Submitted by development to the test environment, tested, and released in a unified manner by O & M. The test requires a test server and an online (production environment) server. Svn running on the
Recently, I configured an SVN server to save some of my code. The SVN server is also a front-end web server. Therefore, we hope to use the svn post-commit hook hooks to deploy the SDK while submitting code.
The procedure is as follows:
1. Find the
Code review not only improves the quality, but also provides an excellent means of knowledge sharing and guidance.
Code review generally has two forms: Pre-commit-Review and post-commit-review.
Pre-commit-review refers to the Code submitted to the
Use the svn post-COMMIT hook to automatically deploy the code. after submitting the code to SVN during the development process, use the SVN hook and use the post-commit script, execute the svnupdate operation under the root of the target folder to
The SVN post-commit hook script runs after each transaction commit. We can implement some practical functions in this script, such as sending email reminders and automatic backup of version libraries, automatically synchronize code to the web server.
To create a new version library:[[email protected] svn]# pwd/home/svn[[email protected] svn]# svnadmin Create webtest[[email Protected] svn]# Tree webtest/webtest/├──conf│ ├──authz│ ├──passwd│ └── svnserve.conf├──db│ ├──current│ ├──format│ ├──
Description
Recently in the window with a virtual machine installed an Ubuntu system, set up the PHP environment, in order to easily view the code under the window, so want to build an SVN, directly to the corresponding web directory code, and then
Description
Recently in the window with a virtual machine installed an Ubuntu system, set up the PHP environment, in order to easily view the code under the window, so want to build an SVN, directly to the corresponding web directory code, and then
The SVN hook mechanism allows you to customize some operations based on SVN actions. Post-commithook is a user-defined operation performed after the user executes commit. For example, after the user commit, the user automatically calls the
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.