Class: Ramaze::Adapter::Thin
Class Method Summary collapse
-
.run_server(host, port) ⇒ Object
start server on given host and port.
Methods inherited from Base
before, before_call, call, middleware_respond, respond, start, stop
Class Method Details
.run_server(host, port) ⇒ Object
start server on given host and port.
10 11 12 13 14 15 16 17 18 |
# File 'lib/ramaze/adapter/thin.rb', line 10 def run_server host, port server = ::Thin::Server.new(host, port, self) ::Thin::Logging.silent = true server.timeout = 3 thread = Thread.new{ server.start } thread[:adapter] = server thread end |