Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: 0d993982e7
Fetching contributors…

Cannot retrieve contributors at this time

22 lines (18 sloc) 0.511 kB
require 'rake-pipeline'
require 'rake-pipeline/middleware'
use Rake::Pipeline::Middleware, 'Assetfile'
# require 'rack/streaming_proxy'
# use Rack::StreamingProxy do |request|
# if request.path.start_with?('/proxy')
# path = request.path
# if request.query_string
# path = "#{path}?#{request.query_string}"
# end
# "http://127.0.0.1:8080#{path}"
# end
# end
require 'rack-rewrite'
use Rack::Rewrite do
rewrite %r{^(.*)\/$}, '$1/index.html'
end
run Rack::Directory.new('.')
Jump to Line
Something went wrong with that request. Please try again.