I’m just getting started with svn so please, help me out if I saw anything stupid.
I’m developing on a windows laptop using tortoisesvn.
I’m deploying to a linux server.
I have my repo set up and checked out on my laptop.
I can’t manage to check it out to a directory on the server. I’ve created a directory for it but can’t get svn checkout file:///... to work! Based on this tutorial the checkout command takes the following form: svn checkout file:///repository_name/project/trunk project but what is the repository_name? My repo is at /home/username/svn, I don’t remember naming the repo other than saying what directory it’s in.
Once I do actually have that sorted I would like to have the repo automatically export to that directory when I commit from my laptop. Is that possible?
Sorry if that’s horribly unclear but I wanted to be detailed.
Basically I want to commit from my laptop and have that trigger an export of the newly commited files to a directory on the server.
There are two different ways you can automatically export to your public_html folder, both of which involve setting up a post-commit hook. You could:
scp(available in the Putty suite), rsync, or even a samba file share.Now, a couple of things you’ve stated above are a bit… confusing. I’ve made some assumptions that reconcile the above, so please comment if I have mis-assumed.
Right now, you have both the repository and a checkout on your laptop. And, it sounds like you have used the
file://protocol for your checkout. If so, you will not be able to access your repository from your Linux server (yes, it is possible if you’re also serving your repository over SSH or http). This would explain why you can’t get a checkout using the same file protocol within Linux — it doesn’t have access to your Windows file system.Given the above, I would try approach number one above. Write a script (or program) that copies the files to your Linux server.