Skip to content

Commit

Permalink
Register ControlTower as a Rack::Handler
Browse files Browse the repository at this point in the history
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
ferrous26 committed Sep 13, 2012
1 parent b6f9184 commit 6f3654f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/rack/handler/control_tower.rb
Expand Up @@ -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.