Class: Merb::Rack::Thin
Class Method Summary collapse
-
.start(opts = {}) ⇒ Object
Parameters opts<Hash>:: Options for Thin (see below).
Class Method Details
.start(opts = {}) ⇒ Object
Parameters
- opts<Hash>
-
Options for Thin (see below).
Options (opts)
- :host<String>
-
The hostname that Thin should serve.
- :port<Fixnum>
-
The port Thin should bind to.
- :app<String>>
-
The application name.
16 17 18 19 20 21 22 23 24 |
# File 'lib/merb-core/rack/adapter/thin.rb', line 16 def self.start(opts={}) Merb.logger.warn!("Using Thin adapter") if opts[:host].include?('/') opts[:host] = "#{opts[:host]}-#{opts[:port]}" end server = ::Thin::Server.new(opts[:host], opts[:port], opts[:app]) ::Thin::Logging.silent = true server.start! end |