Re:No Server Required - Jekyll & Amazon S3
by KirinDave on Wednesday August 17, 2011 @08:05PM
(#2897452)
If you want to get really exotic, you can check out the Haskell version of this tool. My site (http://dave.fayr.am) does the same thing using Hakyll and S3. You can see the code here: https://github.com/KirinDave/public-website
[ Parent
| on HN ]
http://www.gwern.net is built on Hakyll as well; I'm currently hosting the static files on NFSN, but they're noticeably more expensive than Amazon S3 and I've been thinking of doing the same thing. What did you have to do to get S3 working?
Re:No Server Required - Jekyll & Amazon S3
by KirinDave on Thursday August 18, 2011 @03:37AM
(#2898344)
Basically nothing. I drag-drop the produced site via S3 Browser.app. I need to fix that part of the workflow; it's a little awkward here.
I'm also using Hakyll for my site (http://www.wunki.org). Used Jekyll before, but I didn't think the markdown libraries were up to par with Pandoc. You can browse the source code of my site here: https://github.com/wunki/www.wunki.org.
I also threw together a script (./publish) that first gzips the static files and then uploads them to S3 with the correct headers (gzip and cache-control). Finally, it invalidates the old files on Cloudfront. Combined I get a very fast site, while keeping the cost low. Again, you can find it all in the github repository.