Recently I’ve been thinking about getting super cheap. Since I have not much contents on my website, $25/year for websites that hardly anyone visits is certainly something that can be optimized. Also, the PHP-based blogging system called Chyrp that I was using has some problems:
But “blogging systems” or CMS in general all have a very nice property, that the pages are dynamically generated from a lightweight markup language. So I don’t have to screw around with both the content and the design at the same time that I really want to keep.
So since I have a Raspberry Pi hosted at EDIS for free, I have decided that the free Raspberry Pi will be powering my sites.
The Pi is very weak, and probably not the most unreliable thing ever, so it’s probably not wise to host my sites on the Pi itself.
So my solution? Host the source somewhere else, but let the Pi do the generation with a static site generator, then put the generated site on somewhere rock-solid. I’m also inspired by the idea that I can manage my pages with git, and the Pi would automatically be triggered when I do a push.
So here comes jekyll-baas (blog-as-a-service). What it does:
The source code, based on jkl is available here – probably needs a lot of clean-up and documentation before it’s usable… But nonetheless, it is working fine for me now. And you can’t take my site down (I hope you don’t try to take it down, as if you do my bill for S3 would be pretty high).
Note that you would have to use toml for the decoration, as we don’t have a good native go-yaml support, and getting cgo to cross compile is painful.