symbiote-library / silverstripe-s3publisher
A static publisher which publishes the site to an S3 bucket
Installs: 0
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 7
Forks: 1
Open Issues: 0
Type:silverstripe-module
Requires
- aws/aws-sdk-php: 2.*
- silverstripe/staticpublishqueue: *
- symfony/finder: 2.4.*
Replaces
- silverstripe-australia/s3publisher: 1.0.2
This package is auto-updated.
Last update: 2024-11-29 04:57:44 UTC
README
IMPORTANT
This module is no longer actively maintained, however, if you're interested in adopting it, please let us know!
SilverStripe S3 Publisher Module
Provides a static publish queue compatible publisher which publishes a copy of the site to S3.
Maintainer Contacts
- Andrew Short (andrew@symbiote.com.au)
Installation
Once you have installed the module using Composer, you need to configure the BucketWebsiteFactory
with your S3
bucket details, and apply the Publisher
extension to SiteTree
:
Injector: Symbiote\S3Publisher\BucketWebsiteFactory: properties: client: key: "<key>" secret: "<secret>" bucket: "<bucket>" baseURL: "<website-base-url>" SiteTree: extensions: - Symbiote\S3Publisher\Publisher
You can then run the static publish queue, and it will publish the site to your S3 bucket as static HTML files. There are also two build tasks:
ConfigureBucketTask
configures the S3 bucket to serve the website.UploadAssetsTask
uploads static asset files (CSS, images...).