Permalink
Browse files

run proxy before filesystem

  • Loading branch information...
1 parent 50df3a9 commit 9d97f220d6edc9ab2f8c961931f98e35991ce527 @onkis onkis committed May 16, 2010
Showing with 4 additions and 4 deletions.
  1. +4 −4 lib/sproutcore/rack/service.rb
View
8 lib/sproutcore/rack/service.rb
@@ -133,14 +133,14 @@ def middleware_for(project)
apps << ::Rack::File.new(pubdir) if File.directory?(pubdir)
end
- if self.filesystem
- apps << SC::Rack::Filesystem.new(project)
- end
-
if project.buildfile.proxies.size > 0
apps << SC::Rack::Proxy.new(project)
end
+ if self.filesystem
+ apps << SC::Rack::Filesystem.new(project)
+ end
+
# Wrap'em in a cascade if needed. This will return the first
# app that does not return nil
app = apps.size == 1 ? apps.first : ::Rack::Cascade.new(apps)

0 comments on commit 9d97f22

Please sign in to comment.