This is all the code behind my blog.
It uses Jekyll static site generator, and is hosted as a Heroku app.
$ sudo apt-get install ruby-dev # Install Ruby and Gems
$ gem install bundler # Install bundler
$ bundle install # Install project dependencies
$ bundle exec rake # Build the static site
$ bundle exec rackup -p 9254 # Run the server
Now browse to 127.0.0.1:9254.
rm -rf _site
git submodule update --init
cd _site
git add -A .
git commit -m 'Some changes'
git push # Publish!