Home IT Linux Windows Database Network Programming Server Mobile  
  Home \ Server \ Use SVN to automatically deploy code under Apache     - Linux Learning --- disk partition / relational representation + mount (Linux)

- How to install and use the malware detection tool LMD and ClamAV antivirus engine on Linux (Linux)

- Linux iptables firewall settings (Linux)

- LVM Disk Manager Application (Linux)

- Build a super simple "hardware" firewall router (Linux)

- To install and deploy Java applications under CentOS 6.5 (Linux)

- Ubuntu font settings: Using Windows Font (Linux)

- PHP generates a random password several ways (Programming)

- Docker commonly used commands Description (Linux)

- Nginx concerning the location and rewrite applications proxy_pass (Server)

- Build your own CA services: OpenSSL command line CA Quick Guide (Server)

- Database start listening TNS-12537, TNS-12560 error (Database)

- Comparison of sorting algorithms (Programming)

- Let Linux boot methods to enter characters interface and set FrameBuffer resolution methods (Linux)

- Memcache explain in detail (Server)

- Linux more command Detailed (Linux)

- Let Mac OS X dedicated high-speed mobile hard disk can also be read in Linux (Linux)

- Installation of network monitoring ntopng under CentOS 6.4 (Linux)

- Use Swift remove the spaces in the string (Programming)

- Zabbix configuration of SNMP (Server)

  Use SVN to automatically deploy code under Apache
  Add Date : 2018-11-21      
  I encountered a problem svn not ftp ftp can not svn Is there a way to link the two together? In fact, do not need to svn carrying hooks (hook) function you have enough to meet demand

svn configurations and settings can be found directly online. Directly say how to configure automatic synchronization. In svn directory / www / svn / repos / hooks some file post-commit.tmpl

This is the file to edit is in svn commit there when we need to do

1. Set the need to update the directory at checkout configured directly inside page of the corresponding directory

2. Modify the post-commit.tmpl file cp post-commit.tmpl post-commit

3. Edits post-commit file, pay attention to post-commit file is necessary to apache user rights can be executed


export LANG = zh_CN.UTF-8
REPOS = "$ 1"
REV = "$ 2"
WEB_PATH = / www / web / public_html_new / xxx
LOG_PATH = / www / web / log / svn_upload_log
CURDATE = "date"

echo "code commit at $ CURDATE" >> $ LOG_PATH
/ Usr / bin / svn update $ WEB_PATH --username username --password password >> $ LOG_PATH

among them:

WEB_PATH is set under the apache web directory

LOG_PATH log directory

After the completion of the implementation of the Local Area Connection and submit the code while svn line can be updated in real time

Special attention is required

You need to set the .svn directory in the apache httpd.conf prohibit access or file contained inside

< DirectoryMatch. * \. Svn /.*>
    Deny From All
< / DirectoryMatch>
- Linux use additional rights (Linux)
- CentOS7 virtual machine creation failed Solution (Linux)
- Python configuration tortuous road of third-party libraries Numpy and matplotlib (Programming)
- Sublime Text Add instructions to insert the current time zone (Linux)
- Killall five options you might not know (Linux)
- Linux System Getting Started Learning: Linux how to install 7zip (Linux)
- HomeKit User Interface Guidelines (Linux)
- shell script: MySQL monitoring service is normal (Database)
- Rely on IP chain established Linux firewall (Linux)
- Oracle table space usage monitoring (Database)
- Linux, security encryption to transfer files between machines (Linux)
- GAMIT baseline solution using batch were counted (Linux)
- The Definitive Guide to Linux NAT network connection (Linux)
- Let your PHP 7 faster the Hugepage (Linux)
- RHEL7 system making use of OpenStack mirror (Linux)
- MySQL how to export files with the date format (Database)
- nginx.conf Optimization (Server)
- Linux SU command security Suggestions (Linux)
- Ubuntu deployment Flask + UWSGI + Nginx Comments (Server)
- Puppet 3.5 Source package Installation and Configuration (Server)
  CopyRight 2002-2016 newfreesoft.com, All Rights Reserved.