Difference between revisions of "Subversion"

From Atomicorp Wiki
Jump to: navigation, search
m (Protected "Subversion" (‎[edit=sysop] (indefinite) ‎[move=sysop] (indefinite)))
 
(17 intermediate revisions by 2 users not shown)
Line 1: Line 1:
Setting up subversion on a plesk server
+
== '''Installation of subversion on a plesk server''' ==
 
+
  
 
Step 1) Install subversion
 
Step 1) Install subversion
 
   yum install subversion mod_dav_svn
 
   yum install subversion mod_dav_svn
 +
'''NOTE''' Subversion is not part of the ART repository. As of this time, you will need to have the [http://dag.wieers.com/rpm/packages/rpmforge-release/ rpmforge repository] installed
  
 
Step 2) Create the root repository dir
 
Step 2) Create the root repository dir
Line 37: Line 37:
 
   </Location>
 
   </Location>
  
Step 6) Create your authentication file
+
Step 6) Update plesks configuration, and restart httpd
 +
  /usr/local/psa/admin/sbin/websrvmng -a
 +
  /etc/init.d/httpd restart
 +
 
 +
Step 7) Create your authentication file
 
   htpasswd -c /var/www/passwd myusername
 
   htpasswd -c /var/www/passwd myusername
  
Step 7) Import your project
+
Step 8) Import your project
   svn import ~/src/MyProject http://servername/repos/MyProject
+
   svn import ~/src/MyProject http://domain.com/repos/MyProject
 +
 
 +
== '''Subversion user  Cheatsheet''' ==
 +
 
 +
 
 +
Checking out
 +
  svn co http://domain.com/repos/MyProject
 +
 
 +
Checking in
 +
  svn ci http://domain.com/repos/MyProject
 +
 
 +
 
 +
 
 +
== '''Subversion Clients''' ==
 +
 
 +
RapidSVN
 +
 
 +
 
 +
== '''Subversion add-ons''' ==

Latest revision as of 12:36, 28 June 2024

Contents

[edit] Installation of subversion on a plesk server

Step 1) Install subversion

 yum install subversion mod_dav_svn

NOTE Subversion is not part of the ART repository. As of this time, you will need to have the rpmforge repository installed

Step 2) Create the root repository dir

 mkdir /var/www/svn

Step 3) Create a your project

 svnadmin create MyProject

Step 4) Make project writable by apache

 chown -R apache.apache /var/www/svn/MyProject

Step 5) Create the virtual host configuration, in the domains vhost.conf

 cd /var/www/vhosts/domain.com/conf
 vim vhost.conf

Paste the following

 <Location /repos>
  DAV svn
  SVNParentPath /var/www/svn
  #
  # Limit write permission to list of valid users.
  <LimitExcept GET PROPFIND OPTIONS REPORT>
     # Require SSL connection for password protection.
     # SSLRequireSSL
     #
     AuthType Basic
     AuthName "Authorization Realm"
     AuthUserFile /var/www/passwd
     Require valid-user
  </LimitExcept>
 </Location>

Step 6) Update plesks configuration, and restart httpd

 /usr/local/psa/admin/sbin/websrvmng -a
 /etc/init.d/httpd restart

Step 7) Create your authentication file

 htpasswd -c /var/www/passwd myusername

Step 8) Import your project

 svn import ~/src/MyProject http://domain.com/repos/MyProject

[edit] Subversion user Cheatsheet

Checking out

 svn co http://domain.com/repos/MyProject

Checking in

 svn ci http://domain.com/repos/MyProject


[edit] Subversion Clients

RapidSVN


[edit] Subversion add-ons

Personal tools