Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
15 lines (11 sloc) 298 Bytes
require 'rubygems'
require 'bundler'
Bundler.require
use Rack::TryStatic,
:root => "_site",
:urls => %w[/],
:try => ['.html', 'index.html', '/index.html']
use Rack::Static,
:root => "public",
:urls => %w[/]
run lambda { [404, {'Content-Type' => 'text/html'}, ['Not Found']]}