Rails-4.2.1 WebRick SSLEnable

32 views
Skip to first unread message

byrnejb

unread,
Sep 21, 2015, 3:59:35 PM9/21/15
to Ruby on Rails: Talk
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)?

Rob Biedenharn

unread,
Sep 21, 2015, 4:22:02 PM9/21/15
to rubyonra...@googlegroups.com
Here's how one person did (does) it:


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

-Rob

Reply all
Reply to author
Forward
0 new messages