This script is intended for regular changes to running web site, in code (thought with php development in mind).
sfdeploy.plscript in somewhere PATH
- Create a folder for deploy task, say "DEPLOY"
- cd DEPLOY and execute
- every change time you have another version in svn call
sfdeploy.plin DEPLOY folder
Get it by simply:
svn export https://svnftpdeploy.svn.sourceforge.net/svnroot/svnftpdeploy/trunk/sfdeploy.pl
It has a simple usage:
'sfdeploy.pl' deploy changes between CURRENTREV and HEAD 'sfdeploy.pl d CURVER DSTVER' deploy changes between CURVER and DSTVER, if CURVER is an existing filename is taken number or text contained in filename. If DSRVER is omitted is taken HEAD. If CURVER is omitted is taken content of CURRENTREV file, if CURRENTREV do not exists is taken 1. At end is asked if update CURRENTREV to DSTVER. 'sfdeploy.pl sf filename CURVER DSTVER' deploy single file. If DSTVER is omitted is taken HEAD. If CURVER is an existing filename is taken file content. If CURVER is omitted is taken 1. 'sfdeploy.pl mf "[file list]" CURVER DSTVER' deploy multiple file [file list] space separed. Same logic as sf for CURVER and DSRVER
Daniele Cruciani < daniele~at~smartango.com >