I finally took the time to move this site to s3 instead of my previous setup with a digitalocean droplet.
Before I used my own git server, capistrano and nginx to serve and deploy the site. That approach was a bit brittle and ultimately was not as automatic as I’d like.
Here’s a quick rundown of the new deployment and hosting.
The site is now open source and hosted at Github, feel free to have a look at the code if you like. TravisCI and the gem s3_website is used for deployment to S3. Due to limitations in DNS, namely that the root @ record cannot be a CNAME I’ve used my droplet and nginx to redirect traffic to hugotunius.se to www.hugotunius.se which is a CNAME for the s3 bucket.
Code
Here are the relevant parts of the deployment code if you are interested in setting up something similar