sinatra git blog
This is a simple blog host written with Sinatra.
Markdown articles are placed in
/articles for publication.
rackup -p 4567
rackup -E production -D -s thin
A git post-receive hook is included that will update the published articles
on the server when article updates have been pushed (providing
RACK_ENV == 'production'). The hook responds to a
So, a simple hook script could be:
#!/usr/bin/env ruby require 'rest-client' RestClient.post 'http://example.com/update', ''