Class: Rack::Handler::Rainbows
- Inherits:
-
Object
- Object
- Rack::Handler::Rainbows
- Defined in:
- lib/rainbows/rails.rb
Class Method Summary collapse
Class Method Details
.run(app, options = {}) ⇒ Object
13 14 15 16 17 18 19 20 21 |
# File 'lib/rainbows/rails.rb', line 13 def run(app, = {}) = {} [:listeners] = ["#{[:Host]}:#{[:Port]}"] [:worker_processes] = (ENV["RAINBOWS_WORKERS"] || "1").to_i [:timeout] = 31 * 24 * 60 * 60 ::Rainbows::Launcher.daemonize!() if [:daemonize] ::Rainbows::HttpServer.new(app, ).start.join end |