ENHANCMENT: RsyncMultiHostPublisher also rsyncs sapphire/static-main.php.

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.4@104674 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Sam Minnee 2010-05-12 05:29:26 +00:00
parent bafeaaea1c
commit e0b5c8f39f

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;
}
}