1.进入/home/www目录下
svn co svn://127.0.0.1/lucky
2.建立post-commit文件
#!/bin/sh
WEB_PATH=/home/www/lucky
export LANG=en_US.utf8
/usr/bin/svn update $WEB_PATH --username abc --password 123 --no-auth-cache
给post-commit 执行权限:
chmod 755 post-commit
1.进入/home/www目录下
svn co svn://127.0.0.1/lucky
2.建立post-commit文件
#!/bin/sh
WEB_PATH=/home/www/lucky
export LANG=en_US.utf8
/usr/bin/svn update $WEB_PATH --username abc --password 123 --no-auth-cache
给post-commit 执行权限:
chmod 755 post-commit
本文标题:svn更新自动同步到web目录
本文链接:https://www.haomeiwen.com/subject/rtbxoqtx.html
网友评论