Class: Ramaze::Adapter::Scgi

Inherits:
Base show all
Defined in:
lib/ramaze/adapter/scgi.rb

Overview

Our Scgi adapter acts as wrapper for the Rack::Handler::SCGI.

Class Method Summary collapse

Methods inherited from Base

before, before_call, call, middleware_respond, respond, start, stop

Class Method Details

.run_server(host, port) ⇒ Object

start SCGI in a new thread



13
14
15
16
17
18
# File 'lib/ramaze/adapter/scgi.rb', line 13

def run_server host, port
  Thread.new do
    Thread.current[:task] = :cgi
    Rack::Handler::SCGI.run(self, :Host=>host, :Port=>port)
  end
end