| Author: |
|
| Dated: |
Tuesday, October 14 2008 @ 12:10 AM NZDT |
| Viewed: |
248 times |
|
I figured out how to set up a subversion repository on my web host today. It was a bit tricky, because I use shared hosting which has no provisions for svn whatsoever. However, it turns out that ssh access to your server is all you really need to set it up. Host Monster does provide ssh access if you send them a photo of some ID, so it was all good.
I looked at a few ways of setting it up. I don't have permission to run long term processes on the server, so a typical svn server went out the window immediately. The apache version it runs doesn't have the svn extension thing, so there goes that option. All that's left is svn+ssh, which works by logging into the server remotely and running a temporary svn server process. The first slight issue was that (unsurprisingly) the server didn't have svn installed, and I don't have permission to install anything. Not a problem, I figured I could edit the .bashrc (the server runs some obscure version of linux) and add the bin directory of svn to the path. That way any ssh login can automatically run the svn commands, even though they're not installed in a normal place. That's all fine, but I then needed some svn binaries that would run on an obscure version of 64bit linux. Easiest way of getting that sort of thing is to compile on the target hardware. So I checked if the server had any compilers installed, and indeed it did (of course, I mean it's linux). So I downloaded the svn sourcecode, uploaded it to the server, tried to build it, and found that I needed a couple of apache libraries. I did the same upload-the-source-and-compile trick to them, and installed them to my home directory. From there I could build and install svn. It went without a hitch, and I created a test repository. It took me a bit longer to figure out how to access the repo using svn+ssh, but I got it working (it's a bit cumbersome though). Having added a feature to my hosting, I was stoked.
Maybe I should have just suggested Host Monster add svn serving to their package.
|
Trackback URL for this entry: http://razorcode.net/trackback.php/SvnHosting
No trackback comments for this entry.
|