With these you will initially import files into your repository with import, you'll check them out to work on them with checkout, and you'll commit the changes back into the database with commit. The most common arguments you will most likely be using are: svn import, svn commit (ci), and svn checkout (co). Subversions svn tool is the command line client that you will use to talk to the database. If all went well above, you're now ready to start using the repository that you created. This sets up one repository and shows you how to start using them. If you want multiple repos, check out the docs from the links provides above. If so, type in your credentials and you should be displayed with a Revision 0:/ page. Go test out whether or not you can access your repository from a web browser: You should get a popup box asking for a username and password. This is simple to do with some of the included svn ~] cd /var/www/ - Or wherever you placed your path ~] mkdir ~] cd ~] svnadmin create ~] chown -R apache.apache ~] service httpd restart The next thing you need to do is to create the actual repository from which you will check in and out your files. If you need to add users make sure you simply use the -m flag, and not the -c after the initial ~] htpasswd -cm /etc/svn-auth-conf yourusernameĪdding password for user ~] htpasswd -m /etc/svn-auth-conf anotherusername This creates the file and also encrypts the password with MD5. Next we have to actually create the password file that you specified in the previous step. Make sure you save the file when you are finished editing. My examples are just that, so feel free to put things where you want. For instance: points to the SVNPath that you have specified. The location is what Apache will pass in the URL bar. # Add the following to allow a basic authentication and point Apache to where the actual LoadModule authz_svn_module modules/mod_authz_svn.so LoadModule dav_svn_module modules/mod_dav_svn.so # Make sure you uncomment the following if they are commented out Get yourself to the example configuration file Subversion installed for ~] cd ~] vim nf The next step is to setup some settings within Apache so Subversion and Apache play nice together. If you need more help or more complex configurations, then consult the Apache docs ~] vim /etc/httpd/conf/nf - Edit what you need and save the ~] service httpd ~] chkconfig httpd onīrowse to your machine on the network and see if you get your test page, which you should: Working? Great, let's move along to more fun things. You can easily let this out, however, if you want to allow access to the repos from everyone.įirst thing is make sure you open up /etc/httpd/conf/nf and at least change the ServerName directive. I'm also going to explain setting this up with basic password protection. I'm assuming this is a virgin installation, so if you already have Apache things going.be careful what you change. Depending on your packages, your mileage may vary.īefore you delve into the deep end, you need to ensure Apache is set up first. Some other things will be installed automatically. When you install from yum, there's a longer list than the two packages above that will automatically resolve themselves. If you don't have Apache installed already, it'll go ahead and drag that down as well. The first thing to do is to install the packages I mentioned above.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |