Class: Cuttlebone::Drivers::Rack
- Defined in:
- lib/cuttlebone/drivers/rack.rb
Defined Under Namespace
Classes: Application, Middleware
Instance Method Summary collapse
-
#run ⇒ Object
Starts Cuttlebone Rack application.
Methods inherited from Base
Constructor Details
This class inherits a constructor from Cuttlebone::Drivers::Base
Instance Method Details
#run ⇒ Object
Starts Cuttlebone Rack application.
110 111 112 113 114 115 116 117 118 119 |
# File 'lib/cuttlebone/drivers/rack.rb', line 110 def run trap(:INT) do if server.respond_to?(:shutdown) server.shutdown else exit end end server.run app, :Host=>'0.0.0.0', :Port=>9292 end |