Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Take into account the Rack::Server :SSLEnable option when building th…

…e application's URL
  • Loading branch information...
commit 1f1989dee00ac366a2ae638461c68ccdd6b64586 1 parent 785ee65
Daniel Martin authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  railties/lib/rails/commands/server.rb
View
3  railties/lib/rails/commands/server.rb
@@ -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]
Please sign in to comment.
Something went wrong with that request. Please try again.