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