Module: Rack::Handler::Osprey

Defined in:
lib/osprey/rack/handler/osprey.rb

Class Method Summary collapse

Class Method Details

.run(app, options = {}) ⇒ Object



6
7
8
9
10
11
12
13
14
15
16
17
# File 'lib/osprey/rack/handler/osprey.rb', line 6

def self.run(app, options = {})
  ::Osprey.start(
    host: options.fetch(:host, "127.0.0.1"),
    port: options.fetch(:port, 3001),
    workers: options.fetch(:workers, 1),
    threads: options.fetch(:threads, 1),
    http_port: options.fetch(:http_port, 3000),
    cert_path: "/Users/pico/Development/osprey/server.cert",
    key_path: "/Users/pico/Development/osprey/server.key",
    app: app
  )
end