X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/4baccff09d5f8c48cc3c431365f1e029a8c40bb1..bfaee40696c3c15556ef089e69da47bb832b08db:/services/api/script/rails diff --git a/services/api/script/rails b/services/api/script/rails index 2167b04318..14dcc9dd73 100755 --- a/services/api/script/rails +++ b/services/api/script/rails @@ -4,7 +4,7 @@ ##### SSL - ward, 2012-10-15 require 'rubygems' -require 'rails/commands/server' +require 'rails/command' require 'rack' require 'webrick' require 'webrick/https' @@ -13,7 +13,7 @@ module Rails class Server < ::Rack::Server def default_options super.merge({ - :Port => 3001, + :Port => 3030, :environment => (ENV['RAILS_ENV'] || "development").dup, :daemonize => false, :debugger => false, @@ -21,11 +21,11 @@ module Rails :config => File.expand_path("config.ru"), :SSLEnable => true, :SSLVerifyClient => OpenSSL::SSL::VERIFY_NONE, - :SSLCertName => [["CN", WEBrick::Utils::getservername]] + :SSLCertName => [["CN", "#{WEBrick::Utils::getservername} #{Time.now().to_s}"]] }) end end -end +end ######### /SSL