Class: Rack::Handler::Glassfish

Inherits:
Object
  • Object
show all
Defined in:
lib/rack/handler/glassfish.rb

Class Method Summary collapse

Class Method Details

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



42
43
44
45
46
47
# File 'lib/rack/handler/glassfish.rb', line 42

def self.run(app, options={})
  GlassFish::Server.start(:address=>(options[:Host] || '0.0.0.0'),
                                     :port=>(options[:Port] || 3000)) do
    run app
  end
end