Thursday, February 3, 2011

How and where to create SNV repository in best practice by web development

Could you teach me, how to create svn on the Redhat server, in which several sites, there is need to each of them: /home/webmaster/www/kmp.ru/ /home/webmaster/www/yandexapi/ /home/webmaster/www/fms01.ru/ /home/webmaster/www/klubpodarkov.com/

There is could be only one svn or several? How to get svn connection via http:// or svn://. Where can I adjust this? I have in this do not understand!

PS: Sorry for the possibly stupid question

  • There are many ways to do this, but here's a quick example. I'd suggest reading the SVN Book for more information here.

    • Create repos for each site:
      • svnadmin create /var/svn/site1
      • svnadmin create /var/svn/site2
    • configure apache2 to use webDAV and define SVN directory
    • mount repos via webDAV
      • mount -t dav2fs _http://localhost/svn/site1 /mnt/site1
    • add mounted directory to apache2 aliases

    This allows you to view the latest SVN version from the alias and to access the SVN with a URL like _http://server/svn/site1 .

    Had to put unnecessary underlines due to automatic link generation.-

    HWTech : SVN usually create in the directory "var"?
    onik : Not necessarily, it depends on the use. Since I used /var/www as my documentroot, I thought i'd put the repos there and chmod g+s that as well for multiple user access.
    From onik

0 comments:

Post a Comment