Class RsyncMultiHostPublisher
This static publisher can be used to deploy static content to multiple hosts, by generating the cache files locally and then rsyncing then to each destination box. This can be used to set up a load-balanced collection of static servers.
- Extension
-
DataObjectDecorator
-
StaticPublisher
-
FilesystemPublisher
-
RsyncMultiHostPublisher
See: http://doc.silverstripe.com/doku.php?id=staticpublisher
Located at cms/code/staticpublisher/RsyncMultiHostPublisher.php
Methods summary
public static
|
#
set_targets( mixed $targets )
Set the targets to publish to. If target is an scp-style remote path, no password is accepted - we assume key-based authentication to be set up on the application server initiating the publication. |
public
|
Methods inherited from FilesystemPublisher
__construct(),
generatePHPCacheFile(),
generatePHPCacheRedirection(),
getDestDir(),
getExistingStaticCacheFiles(),
set_static_base_url(),
unpublishPages(),
urlsToPaths()
Methods inherited from StaticPublisher
echo_progress(),
externalReferencesFor(),
onAfterPublish(),
onAfterUnpublish(),
onRenameLinkedAsset(),
republish(),
set_echo_progress(),
set_static_publisher_theme(),
static_publisher_theme()
Methods inherited from DataObjectDecorator
augmentDatabase(),
augmentSQL(),
augmentWrite(),
can(),
canCreate(),
canDelete(),
canEdit(),
extraStatics(),
flushCache(),
load_extra_statics(),
onAfterDelete(),
onAfterWrite(),
onBeforeDelete(),
onBeforeWrite(),
populateDefaults(),
requireDefaultRecords(),
updateCMSActions(),
updateCMSFields(),
updateFieldLabels(),
updateFrontEndFields(),
updateSummaryFields()
Methods inherited from Extension
clearOwner(),
getOwner(),
get_classname_without_arguments(),
setOwner()
Magic methods summary
Properties summary
public static
mixed
|
$targets |
#
Array of rsync targets to publish to. These can either be local file names, or scp-style targets, in the form "user@server:path" |
Properties inherited from FilesystemPublisher
$destFolder,
$domain_based_caching,
$fileExtension,
$static_base_url
Properties inherited from StaticPublisher
$disable_realtime,
$echo_progress,
$static_publisher_theme