lib/http/broker.rb in rsence-2.0.0.11 vs lib/http/broker.rb in rsence-2.0.1.12
- old
+ new
@@ -87,19 +87,20 @@
until RSence.argv.test_port( port, host )
puts "..#{host}:#{port} doesn't respond yet.." if ::RSence.args[:debug]
sleep 0.2
end
puts "..#{host}:#{port} responds!" if ::RSence.args[:debug]
+ puts "RSence is online on the address http://#{host}:#{port}#{::RSence.config[:base_url]}"
@@transporter.online = true
end
require 'rack'
# Loads the selected web-server (default is 'mongrel')
rack_require = conf[:rack_require]
- puts conf.inspect
- puts "rack require: #{rack_require.inspect}" if RSence.args[:debug]
+ puts conf.inspect if RSence.args[:debug]
+
require rack_require
# Selects the handler for Rack
handler = {
'webrick' => lambda { Rack::Handler::WEBrick },
@@ -111,17 +112,9 @@
}[rack_require].call
handler.run( Rack::Lint.new(self.new), :Host => host, :Port => port )
end
-
-=begin
- # Extends the receiver with SingletonMethods
- def self.included( receiver )
- receiver.extend( SingletonMethods )
- end
-=end
-
# Generic 404 error handler. Just sets up response status, headers, body as a small "Page Not Found" html page
def not_found
puts "/404: #{@request.fullpath.inspect}" if RSence.args[:verbose]
@response.status = 404