Skip to content
Browse files

Register ControlTower as a Rack::Handler

Tools that call `Rack::Handler.get`, such as Sinatra, expect
ControlTower to have registered itself as `control_tower`
since that is the naming scheme that other servers use.
(see https://github.com/rack/rack/blob/master/lib/rack/handler.rb#L84)

Not conforming will cause an exception to be raised when
`Rack::Handler.get('control_tower')` is called.
  • Loading branch information...
1 parent b6f9184 commit 6f3654fb2e46785e6e605c614fe11d0be6461a62 @ferrous26 ferrous26 committed Sep 13, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 lib/rack/handler/control_tower.rb
View
2 lib/rack/handler/control_tower.rb
@@ -13,5 +13,7 @@ def self.run(app, options={})
server.start
end
end
+
+ register 'control_tower', ControlTower
end
end

0 comments on commit 6f3654f

Please sign in to comment.
Something went wrong with that request. Please try again.