Class: Ramaze::Adapter::Thin
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.
8 9 10 11 12 13 14 |
# File 'lib/ramaze/adapter/thin.rb', line 8 def self.startup(host, port) @server = ::Thin::Server.new(host, port, self) ::Thin::Logging.silent = true @server.timeout = 3 Thread.new{ @server.start } end |