Ruby on Rails Monday, September 21, 2015


On 2015-Sep-21, at 15:59 , byrnejb <byrnejb@harte-lyne.ca> wrote:

in
/usr/lib64/ruby/gems/2.2.0/gems/railties-4.2.1/lib/rails/commands/server.rb

at line 124 we see:

url = "#{options[:SSLEnable] ? 'https' : 'http'}://#{options[:Host]}:#{options[:Port]}"

My question is:  How does one pass the option key
:SSLEnable


to webrick using $ rails server in development mode (or production mode for that matter)?

Here's how one person did (does) it:


After requiring the needed prerequisites, he overrides (redefines) the Rails::Server#default_options

-Rob

No comments:

Post a Comment