The SVN update issue is performed in PHP

Source: Internet
Author: User
 
  &1 ", $output);p Rint_r ($output);


You want PHP exec to execute SVN update for code synchronization. But the program did not execute as expected: The results are as follows: Ask for help
Skipped ' Svn://115.29.186.170/kf5 '

How do I do that? Or how do you implement the SVN code update that the Web server can execute directly?


Reply to discussion (solution)

PHP works with SVN to develop and verify code in real time, has anyone ever done it?

Execute EXEC (' mkdir tests '); The tests file directory can be created successfully.

Http://gongwen.sinaapp.com/article-132.html

To zy205817 thank you always hint: skipped ...

Problem Resolution: Remove the permissions to this directory. The following command must be executed first:

SVN Co FILE:///DATA/WEB/KF5/DATA/WEB/KF6

The first directory File:///data/web/kf5 is the SVN code base directory. The second directory is a web directory.
And then do it again:
SVN update/data/web/kf6/--username svn_name--password svn_passwd--no-auth-cache
Test pass:

Then write the execution script in the SVN directory hooks:
File name: Post-commit
File contents:
#!/bin/sh
Repos= "$"
rev= "$"
Export Lang=en_us. UTF-8
SVN update/data/web/kf6/--username svn_name--password svn_passwd--no-auth-cache

Finally, do not forget to give the Web directory write permissions and Post-commit file execution permissions.




SVN command Line reference:
Http://www.blogjava.net/jasmine214--love/archive/2011/01/12/342839.html

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.