Permalink
Browse files

Add rack/streaming-proxy example

  • Loading branch information...
1 parent 4043134 commit a2ea917e06159851b7853018fa5724c4ac2188e1 Devin Torres committed Feb 8, 2012
Showing with 15 additions and 6 deletions.
  1. +1 −0 Gemfile
  2. +4 −4 Gemfile.lock
  3. +10 −2 config.ru
View
1 Gemfile
@@ -2,6 +2,7 @@ source "http://rubygems.org"
gem "rack"
gem "rack-rewrite"
+# gem "rack-streaming-proxy"
gem "sass"
gem "compass"
View
8 Gemfile.lock
@@ -1,14 +1,14 @@
GIT
remote: https://github.com/livingsocial/rake-pipeline.git
- revision: 56bbc5d9cf7ce1b69d29d3d6af7282603dcdebba
+ revision: 7936e551c3046a1b3929d23047a8740e0a692cc9
specs:
rake-pipeline (0.5.0)
rake (~> 0.9.0)
thor
GIT
remote: https://github.com/wycats/rake-pipeline-web-filters.git
- revision: 32428ba45bbc74e02287a7cf483004df71d89533
+ revision: 5bc876de3b011f807165a517794de155edc668b5
specs:
rake-pipeline-web-filters (0.5.0)
rack
@@ -34,9 +34,9 @@ GEM
rack (1.4.1)
rack-rewrite (1.2.1)
rake (0.9.2.2)
- sass (3.1.12)
+ sass (3.1.14)
thor (0.14.6)
- uglifier (1.2.2)
+ uglifier (1.2.3)
execjs (>= 0.3.0)
multi_json (>= 1.0.2)
yui-compressor (0.9.6)
View
12 config.ru
@@ -1,9 +1,17 @@
-require 'rack-rewrite'
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')
+# "http://127.0.0.1:8080#{request.path}"
+# end
+# end
+
+require 'rack-rewrite'
use Rack::Rewrite do
rewrite %r{^(.*)\/$}, '$1/index.html'
end
+
run Rack::Directory.new('.')

0 comments on commit a2ea917

Please sign in to comment.