Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

22 lines (18 sloc) 0.54 kb
require 'rake-pipeline'
require 'rake-pipeline/middleware'
use Rake::Pipeline::Middleware, Rake::Pipeline::Project.new('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.