Home IT Linux Windows Database Network Programming Server Mobile  
           
  Home \ Server \ Use SVN to automatically deploy code under Apache     - Linux Getting Started tutorial: How to backup Linux systems (Linux)

- impdp error ORA-39001, ORA-39000, ORA-31619 (Database)

- How to use the Linux terminal Git commands (Linux)

- Linux file compression and file system packaged with instructions (Linux)

- PostgreSQL Select source code analysis (Database)

- LVM Disk Manager Application (Linux)

- Using PHP MySQL library (Programming)

- Use UDEV SCSI Rules configured ASM on Oracle Linux 5 and 6 (Database)

- Oracle database file path changes (Database)

- Fedora 20 Installation and Configuration (Linux)

- 14.04.3 Ubuntu configuration and successfully compiled source code Android 6.0 r1 (Programming)

- Java code JIT compiler-friendly Mody (Programming)

- How to make GRub instead of the default Ubuntu software center (Linux)

- CentOS 7 update source - the use of domestic sources 163 yum (Linux)

- How to Start a Linux application running in the background using the terminal mode (Linux)

- Observation network performance tools for Linux (Linux)

- Security Features Linux and Unix operating system, programming (Linux)

- C # dynamic class notes --- (Dynamic) Applications (Programming)

- Smooth upgrade to OpenSSH 6.1 Procedure (Linux)

- CentOS 7 How to install MySQL Server (Database)

 
         
  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

4.

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>
     
         
       
         
  More:      
 
- C # how to generate a folder or file automatically rename (Programming)
- Linux common network tools: ping host sweep (Linux)
- Vi editor Introduction (Linux)
- Install Ubuntu text editor KKEdit 0.2.10 (Linux)
- CentOS 7 open ports (Linux)
- Oracle can not change the tablespace to backup mode in non-archive mode (Database)
- Java thread lifecycle (Programming)
- Linux unpack the tar file to a different directory (Linux)
- Binary search -Java achieve (Programming)
- Linux system security infrastructure Highlights (Linux)
- Copy and paste in Linux terminal and Vim (Linux)
- Linux NIC driver and version information (Linux)
- Linux novice common commands (Linux)
- Ubuntu 12.04 64bit Install Source Insight 3.5 and create desktop icons (Linux)
- Linux Variable content removal and replacement (Linux)
- MySQL Data Types (Database)
- How MAT Android application memory leak analysis (Programming)
- The Linux disguised as windows to make the system more secure (Linux)
- Elasticsearch Kibana installation notes (Linux)
- CentOS7 installation configuration (Server)
     
           
     
  CopyRight 2002-2016 newfreesoft.com, All Rights Reserved.