Permalink
Browse files

Fix static file serving. Should make the flash sockets work again

  • Loading branch information...
1 parent 510220c commit d58c083f9820289bed92481ecb24852a3ac9df26 @lifo lifo committed Jan 12, 2010
Showing with 4 additions and 2 deletions.
  1. +4 −2 config/routes.rb
View
@@ -1,6 +1,5 @@
def app_routes
Rack::Builder.new do
- use Rack::Static, :urls => ["/public"]
use Rack::Session::Cookie
routes = Usher::Interface.for(:rack) do
@@ -9,6 +8,9 @@ def app_routes
post('/receive').to(ReceiveController)
get('/(:file)').to(StaticController)
end
- run routes
+
+ file_server = Rack::File.new(File.join(File.dirname(__FILE__), '../public/'))
+
+ run Rack::Cascade.new([file_server, routes])
end
end

0 comments on commit d58c083

Please sign in to comment.