Method: Brief::Server::Gateway.start

Defined in:
lib/brief/server/gateway.rb

.start(options = {}) ⇒ Object



4
5
6
7
8
9
# File 'lib/brief/server/gateway.rb', line 4

def self.start(options={})
  app = new(root: Pathname(options[:root]))
  port = options.fetch(:port, 9094)
  host = options.fetch(:host, '0.0.0.0')
  Rack::Handler::Thin.run(app, Port: port, Host: host)
end