Take into account the Rack::Server :SSLEnable option when building the application's URL

This commit is contained in:
Daniel Martin 2011-05-06 07:22:27 +01:00
parent 785ee65ddf
commit 1f1989dee0

@ -55,8 +55,9 @@ def set_environment
end
def start
url = "#{options[:SSLEnable] ? 'https' : 'http'}://#{options[:Host]}:#{options[:Port]}"
puts "=> Booting #{ActiveSupport::Inflector.demodulize(server)}"
puts "=> Rails #{Rails.version} application starting in #{Rails.env} on http://#{options[:Host]}:#{options[:Port]}"
puts "=> Rails #{Rails.version} application starting in #{Rails.env} on #{url}"
puts "=> Call with -d to detach" unless options[:daemonize]
trap(:INT) { exit }
puts "=> Ctrl-C to shutdown server" unless options[:daemonize]