Export files to remote server using TortoiseSVN

2

1

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.

Matt

Posted 2010-09-20T18:35:52.243

Reputation: 133

BTW, you use Subersion repository to keep revisions, TortoiseSVN is just client-side GUI for interacting with repository – Lazy Badger – 2012-12-15T21:02:56.430

Answers

1

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"

Lazy Badger

Posted 2010-09-20T18:35:52.243

Reputation: 3 557

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 – 2013-02-07T13:53:13.327

1

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).

artdanil

Posted 2010-09-20T18:35:52.243

Reputation: 131