From b09d915713b7ab2c569ff65a0ea76a37f06a30eb Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Fri, 15 Oct 2010 01:38:45 +0000 Subject: [PATCH] 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 --- code/staticpublisher/RsyncMultiHostPublisher.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/code/staticpublisher/RsyncMultiHostPublisher.php b/code/staticpublisher/RsyncMultiHostPublisher.php index 55ac87ff..9962361a 100644 --- a/code/staticpublisher/RsyncMultiHostPublisher.php +++ b/code/staticpublisher/RsyncMultiHostPublisher.php @@ -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; } }