I’ll admit it, I do like a challenge! The Amazon EC2 micro-image is a really low end server with seriously small amounts of CPU to it’s disposition and very little memory. The challenge; running both a full Atlassian Confluence Wiki and a fully functional WordPress-site with decent performance on this low-end box (or should I say virtual box).
One lacking feature in the Octopress-distribution is that support for automatic deployment to Amazon S3 is missing. I have been looking for a solution for some days, but most of them were somewhat lacking since they didn´t support setting cache-headers (important if you use Amazon CloudFront for distribution), as well as missing support for deleting removed files from the S3-bucket/CloudFront distribution.
Jerome Bernard has an good solution, but I´ve customized it by adding support for cache-expiration headers and adding support for deleting removed files on the S3 bucket. I´ve also added configuration variables to control the behaviour in the Rakefile.
Continue reading Octopress S3 Sync