There is a server with svn rep (/ var / spool / svn). On the same server (/ home / www / site1) there is a site which is located in this repository. I do checkout, correct source codes, commit. How to update information in / home / www / site1 after a commit?

    2 answers 2

    In other words, you have 2 working copies - one from the developer, the other on the web server? svn up updates the working copy to the latest revision.

    • one
      Yes indeed. I figured out my trouble firstly, in my site directory there was a working copy that was not cvn co fixed this problem then in /var/spool/svn/_proj_/hooks/post-commit.tmpl we rename it in post-commit and give the execution rights. In this file, after all the comments svn update / home / www / site1 The rights to site1 set 775 for the group and the user from whom svn is running. Now when you commit info, the code on the working site is updated =) - Gray

    If the folder with the site is tied to the repository (which is unlikely), then you can make a checkout. Otherwise - copying pens.