2 # This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
5 ##### SSL - ward, 2012-10-15
7 require 'rails/command'
10 require 'webrick/https'
13 class Server < ::Rack::Server
17 :environment => (ENV['RAILS_ENV'] || "development").dup,
20 :pid => File.expand_path("tmp/pids/server.pid"),
21 :config => File.expand_path("config.ru"),
23 :SSLVerifyClient => OpenSSL::SSL::VERIFY_NONE,
24 :SSLCertName => [["CN", "#{WEBrick::Utils::getservername} #{Time.now().to_s}"]]
32 APP_PATH = File.expand_path('../../config/application', __FILE__)
33 require File.expand_path('../../config/boot', __FILE__)
34 require 'rails/commands'