How to transfer files from an svn folder to a production server

I have a website written in PHP under source control (SVN). I would like to immediately move all the files from the website directory to the production server.

The problem is that there are SVN folders (.svn) in this folder. The second problem is that I do not want to place on the server only files under source control, but also others in this folder (images, css, etc.).

Could you tell me how to do this? It would be nice if it were repeatable - so that I could only execute one command.

And if there was any opportunity to optimize the download (not download the unmodified files) in order to speed up the production process, it would also be nice.

EDIT:

My development environment is an Eclipse PDT and FTP FTP file.

+5
source share
5 answers

You can use the subversion export function, this will allow you to export all files under version control, but also all files that are not under control. Both methods will skip .svn folders.

You have not mentioned your client, but Tortoise has the option "export unversioned files."

See here for command line syntax

+13
source

You can use the ftp client if it supports filters (excluding .svn folders, i.e. FlashFXP).

Currently, I am using the built-in Nusphere PhpEd IDE function called "Smart upload", so it only updates the modified files (with a modified time change).

+1
source

rsync, , . , .svn, :

fileZilla, View- > Filename Filters SVN CVS. FileZilla, rsync . rsync , Eclipse , 1

+1

You can use springloops, they cover SVN commit and validation, but the most important thing is deploying to an FTP server with one click ...

+1
source

I recently came across the same problem as Ubuntu 9. In FileZilla, you can choose to ignore filters containing even presets to prevent copying .svn folders and windows. You can find this on the View menu in the File Name Filters section ... Works like a charm!

Thumbs up for FileZilla users!

0
source

All Articles