From e0b5c8f39fa126d99b1d5bd44191acaf68e27e34 Mon Sep 17 00:00:00 2001 From: Sam Minnee Date: Wed, 12 May 2010 05:29:26 +0000 Subject: [PATCH] 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 --- 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; } }