Moving Hosts From Github Pages to Amazon S3

I’ve decided to simplify the deployment process and instead host the blog at S3.

Now, my deployment script looks like this:

#!/bin/sh
killall hugo # make sure no hugo server is running since that can mess things up
hugo
s3cmd sync public/* s3://life.beyondrails.com -v --no-mime-magic

That --no-mime-magic switch is because of a known issue that causes css and js files to be uploaded with a mime-type of text/plain instead of text/css and text/js respectively.

Aside from a more streamlined deployment process, I also am able to completely sidestep an intermittent DNS error that sometimes happens when loading the blog when it was hosted on github pages.

Comments

comments powered by Disqus