Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm using TortoiseSVN to keep revisions of my code. When I commit changes, I take note of what files have changed and upload them to my server using FTP.

Here's my workflow:

  1. Edit files on local computer (eg. files in C:\Users\Me\web)
  2. Commit changes to local repository using rightclick-> TortoiseSVN-> SVN Commit.
  3. Take the files, open FileZilla (FTP client) and upload the files to a remote server.

I was wondering if there was a way in which I could omit step 3 from my workflow. Basically I would like the changed files to be automatically uploaded to the remote server when I commit a version to the repository.

Information about my computer environment:

  1. Windows 7 Ultimate x64 with TortoiseSVN x64
  2. Notepad++ text editor
  3. Files edited are PHP, CSS, JS, HTML, etc.
  4. Server is running Linux with PHP 5.2 and MySQL.
  5. FileZilla is used to upload files. I can connect to the server via SSH if that is needed.

Thank you in advance.

share|improve this question
    
BTW, you use Subersion repository to keep revisions, TortoiseSVN is just client-side GUI for interacting with repository –  Lazy Badger Dec 15 '12 at 21:02
add comment

2 Answers

up vote 1 down vote accepted

Well, in case of TortoiseSVN and FTP and SSH you have at least two ways (client-side hook or server-side hooks) in two workflows (export+copy or update /created/ WC on site).

This my answer on similar question lists 3 server-side (svnlook uses repository at local FS) solutions, which can be used in post-commit hook on server and one TortoiseSVN-centric, interactive, client-side solution - all around "export-copy"

share|improve this answer
    
I've moved on to Git since this question was posted, but thank you for responding. Hopefully, other people will find your information helpful. –  Matt Feb 7 '13 at 13:53
add comment

There are multiple ways to accomplish this described in Repository Replication section of SVN book. Some of them require extra programming (e.g hooks), some extra set up and configuration (e.g. svnsync program).

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.