安装和启动
yum -y install subversion
mkdir -p /data/svn
svnadmin create /data/svn/magento
cd /data/svn/magento/conf
vim passwd
www = 123
vim authz
[/]
www = rw
vim svnserve.conf
anon-access = read
auth-access = write
password-db = passwd
authz-db = authz
svnserve -dr /data/svn/magento --listen-port 8888
svn co svn://127.0.0.1:8888
钩子
/data/svn/magento/hooks
vim post-commit
#!/bin/bash
REPOS="$1"
REV="$2"
/usr/bin/svn update /var/www/html/magento/app --username www --password 123
chmod +x post-commit
chown www.www post-commit
vim /root/.subversion/servers
#store-plaintext-passwords = no 改为 store-plaintext-passwords = yes