Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 1996e81875
Fetching contributors…

Cannot retrieve contributors at this time

31 lines (17 sloc) 0.64 kb

sinatra git blog

This is a simple blog host written with Sinatra.

Markdown articles are placed in /articles for publication.

To run

rackup -p 4567

or, say:

rackup -E production -D -s thin

Notes

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 POST to /update.

So, a simple hook script could be:

#!/usr/bin/env ruby
require 'rest-client'
RestClient.post 'http://example.com/update', ''

License

See LICENSE.

Jump to Line
Something went wrong with that request. Please try again.