Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

12 lines (9 sloc) 0.431 kb
# http://gmarik.info/blog/2010/05/10/blogging-with-jekyll-and-heroku-for-free
require 'rack'
require 'rack/contrib/try_static'
use Rack::TryStatic,
:root => "_site", # static files root dir
:urls => %w[/], # match all requests
:try => ['.html', 'index.html', '/index.html'] # try these postfixes sequentially
# otherwise 404 NotFound
run lambda { [404, {'Content-Type' => 'text/html'}, ['whoops! Not Found']]}
Jump to Line
Something went wrong with that request. Please try again.