travis-web/config.ru
2012-07-20 14:31:29 +02:00

23 lines
325 B
Ruby

$: << 'lib'
require 'sinatra'
require 'travis/api/app'
class App < Sinatra::Base
use Travis::Api::App
disable :protection
set :root, File.dirname(__FILE__)
set :public_folder, lambda { "#{root}/public" }
set :static_cache_control, :public
not_found do
'Not found.'
end
end
use Rack::Deflater
run App