Class: Ramaze::Adapter::Mongrel
- Defined in:
- lib/ramaze/adapter/mongrel.rb
Overview
Our Mongrel adapter acts as wrapper for the Rack::Handler::Mongrel.
Class Method Summary collapse
-
.startup(host, port) ⇒ Object
start server on given host and port.
Methods inherited from Base
before_call, call, join, respond, shutdown, start
Class Method Details
.startup(host, port) ⇒ Object
start server on given host and port.
14 15 16 17 18 |
# File 'lib/ramaze/adapter/mongrel.rb', line 14 def self.startup(host, port) @server = ::Mongrel::HttpServer.new(host, port) @server.register('/', ::Rack::Handler::Mongrel.new(self)) @server.run end |