Class: WebSystem::AgooServerRack
- Inherits:
-
ServerRack
- Object
- Liza::Unit
- Liza::Controller
- Rack
- ServerRack
- WebSystem::AgooServerRack
- Defined in:
- lib/web_system/sub/rack/server_racks/agoo_server_rack.rb
Class Method Summary collapse
Methods inherited from Liza::Controller
color, inherited, on_connected
Methods inherited from Liza::Unit
const_missing, division, part, system, #system, test_class
Class Method Details
.call(rack_app) ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/web_system/sub/rack/server_racks/agoo_server_rack.rb', line 3 def self.call rack_app rack_panel = WebBox[:rack] host = rack_panel.get :host port = rack_panel.get :port files = rack_panel.get :files Signal.trap(:INT) do puts log "Exiting..." Lizarb.exit end # https://github.com/ohler55/agoo/blob/develop/lib/rack/handler/agoo.rb require "rack/handler/agoo" handler = ::Rack::Handler::Agoo handler.run rack_app, Host: host, Port: port # TODO: improve custom configurability for agoo # https://github.com/ohler55/agoo/tree/develop/example end |