Sha256: 620b4af8a1f0a227fa38cc128da19bd769bc4684d291ea5639bb570c8e11b627
Contents?: true
Size: 705 Bytes
Versions: 2
Compression:
Stored size: 705 Bytes
Contents
# Copyright (c) 2008 Michael Fellinger m.fellinger@gmail.com # All files in this distribution are subject to the terms of the Ruby license. require 'mongrel' require 'ramaze/adapter' require 'rack/handler/mongrel' module Ramaze module Adapter # Our Mongrel adapter acts as wrapper for the Rack::Handler::Mongrel. class Mongrel < Base class << self # start server on given host and port. def run_server host, port server = ::Mongrel::HttpServer.new(host, port) server.register('/', ::Rack::Handler::Mongrel.new(self)) thread = server.run thread[:adapter] = server thread end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ramaze-0.3.0 | lib/ramaze/adapter/mongrel.rb |
ramaze-0.3.5 | lib/ramaze/adapter/mongrel.rb |