How to set up Subversion over HTTP
I'm relatively new to Subversion. I'm familiar with the basic concepts and have used simple checkout/update/commit commands, but nothing more. I am starting a new project and would like to use Subversion.
I work from a lot of different computers, so having a local svn repo doesn't make much sense. I do have access to a server. I do not have admin rights to that server, but I do have a public_html
directory that is world-readable. I figured I would just create the repo somewhere underneath my public_html
directory and check it out using the HTTP protocol.
I created the repo in ~/public_html/myrepo
, successfully checked it out on that machine, and verified that the repo was accessible via a web browser at http://myserver.myschool.edu/~开发者_如何学编程myusername/myrepo
.
Then I tried checking it out to my local machine using svn co http://myserver.myschool.edu/~myusername/myrepo
, but I got the following message.
svn: Repository moved permanently to 'http://myserver.myschool.edu/~myusername/myrepo/'; please relocate
I'm guessing I took a naive approach and that I'm missing something. Any ideas? The server hosting the repo is running Fedora Linux, and I don't have admin rights. Also, I would like the repo to be accessible without a password.
Thanks!
Occasionally configuration rights are granted via .htaccess
put in your public_html. Apache must load the module dav_svn in order to service your subversion repository. Not an easy task to setup subversion over http without administration privileges. Maybe your admin is willing to give a hand.
Free hosted subversion services as pointed out by other posters might be an option as well.
On Windows, the easiest way is to use VisualSVN Server. The Standard edition is free for commercial use.
You could also check out http://www.origo.ethz.ch/ to see if it meets your needs..
The easiest way is VisualSvn Server, but that's Windows only. For a cross-platform equivalent, Collabnet's Edge is the way to go. its a fully-set up stack of Apache, Subversion and ViewVC, that link is to the RedHat install.
精彩评论