ENHANCMENT: RsyncMultiHostPublisher also rsyncs sapphire/static-main.php. (from r104674)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@112457 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Ingo Schommer 2010-10-15 01:38:45 +00:00
parent 93cbe1098a
commit b09d915713

View File

@ -53,6 +53,8 @@ class RsyncMultiHostPublisher extends FilesystemPublisher {
$rsyncOutput = `cd $base; rsync -av -e ssh --exclude /.htaccess --exclude /web.config --exclude '*.php' --exclude '*.svn' --exclude '*.git' --exclude '*~' $extraArg --delete . $target`;
// Then transfer "safe" PHP from the cache/ directory
$rsyncOutput .= `cd $base; rsync -av -e ssh --exclude '*.svn' --exclude '*~' $extraArg --delete cache $target`;
// Transfer sapphire/static-main.php to the target
$rsyncOutput .= `cd $base; rsync -av -e ssh --delete sapphire/static-main.php $target/sapphire`;
if(StaticPublisher::echo_progress()) echo $rsyncOutput;
}
}