grrr-amsterdam / simply-static-deploy

WordPress plugin to deploy static sites easily to an AWS S3 bucket.
MIT License
68 stars 11 forks source link

Add support for DigitalOcean Spaces (and other providers) #21

Closed schoenkaft closed 4 years ago

schoenkaft commented 4 years ago

This adds support for DigitalOcean Spaces, and other providers. The former syncs perfectly, and was a breeze to set up and work with. But in the end it doesn't support index.html resolving, so isn't suited for website for now. They're working on it though:

Customers have also been asking to host static websites from their Spaces as well. This feature is currently under development and will serve as a building block for a front-end-as-a-service solution that leverages some of the core building blocks of the object storage and CDN infrastructure that customers have come to love.

We are looking to introduce static sites later this year.

I've also simplified two AWS SDK specific try/catch blocks, because the AwsException-specific methods didn't return the right errors in this case, and the default getMessage always returns something meaningful. Maybe the type hints are a bit explicit now, but at least you know what you're getting.