After a while using WordPress and hating the lack of control I finally decided to create my own blogging software.
Who knows, maybe some day this software will be useful and others will be able to reuse it, but, at least for the time being, it's for me, just hacking and trying ideas.
I used to write my posts in ERB format, but it's too complicated for what I need (static pages). The new format is Markdown converted to ERB using pandoc
.
Each article lives within the views/
folder with the following structure:
- source.md
- index.erb (Generated by pandoc)
- pictures and other assets
Make sure you have rbenv installed.
export BLOG_PATH=<path to the repository>
cd $BLOG_PATH
gem install bundler
bundle install
unicorn -c unicorn.rb
The server will listen on port 8080: http://127.0.0.1:8080.
docker build -t blog .
docker run --rm --name myblog -p 8080:8080 -d blog