#touch update.php
#vim update.php
system("/usr/bin/svn checkout /var/www/test --username xxx --password xxxxxx");
?>
刚开始更新,有提示错误,查看apache日志,知道是权限的问题:
[root@meguro logs]# tail -f error_log
[Thu Jun 25 16:36:03 2009] [error] [client 192.168.8.228] File does not exist: /var/www/favicon.ico
svn: Can't open file '/root/.subversion/servers': Permission denied
svn: Can't open file '/root/.subversion/servers': Permission denied
添加权限后,svn便可以正常更新.成功后会出现:"Checked out revision 66."的信息.
阅读(1005) | 评论(0) | 转发(0) |