lib/firehose/server/app.rb
# Boot the Firehose server with the Rainbows app server.
Boot the Firehose server with the Rainbows app server.
Boot the Firehose server with the Rainbows app server .
def start_rainbows
        require 'rainbows'
        Faye::WebSocket.load_adapter('rainbows')
        rackup = Unicorn::Configurator::RACKUP
        rackup[:port] = @port if @port
        rackup[:host] = @host if @host
        rackup[:set_listener] = true
        opts = rackup[:options]
        opts[:config_file] = File.expand_path('../../../../config/rainbows.rb', __FILE__)
        server = Rainbows::HttpServer.new(Firehose::Rack::App.new, opts)
        server.start.join
      end
def start_rainbows require 'rainbows' Faye :: WebSocket . load_adapter ( 'rainbows' ) rackup = Unicorn :: Configurator :: RACKUP rackup [ :port ] = @port if @port rackup [ :host ] = @host if @host rackup [ :set_listener ] = true opts = rackup [ :options ] opts [ :config_file ] = File . expand_path ( '../../../../config/rainbows.rb' , __FILE__ ) server = Rainbows :: HttpServer . new ( Firehose :: Rack :: App . new , opts ) server . start . join end
Boot the Firehose server with the Rainbows app server.
Boot the Firehose server with the Rainbows app server .