-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Kevin Incorvia
committed
Jul 23, 2012
1 parent
e231246
commit 3f0c04b
Showing
3 changed files
with
42 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,6 @@ | ||
#!/usr/bin/env ruby | ||
# This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application. | ||
|
||
require 'rubygems' | ||
require 'rails/commands/server' | ||
require 'rack' | ||
require 'webrick' | ||
require 'webrick/https' | ||
|
||
module Rails | ||
class Server < ::Rack::Server | ||
def default_options | ||
super.merge({ | ||
:Port => 3000, | ||
:environment => (ENV['RAILS_ENV'] || "development").dup, | ||
:daemonize => false, | ||
:debugger => false, | ||
:pid => File.expand_path("tmp/pids/server.pid"), | ||
:config => File.expand_path("config.ru"), | ||
:SSLEnable => true, | ||
:SSLVerifyClient => OpenSSL::SSL::VERIFY_NONE, | ||
:SSLPrivateKey => OpenSSL::PKey::RSA.new( | ||
IO.read(File.expand_path("server.pem"))), | ||
:SSLCertificate => OpenSSL::X509::Certificate.new( | ||
IO.read(File.expand_path("server.pem"))), | ||
:SSLCertName => [["CN", WEBrick::Utils::getservername]] | ||
}) | ||
end | ||
end | ||
end | ||
|
||
|
||
APP_PATH = File.expand_path('../../config/application', __FILE__) | ||
require File.expand_path('../../config/boot', __FILE__) | ||
require 'rails/commands' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
#!/usr/bin/env ruby | ||
# This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application. | ||
|
||
require 'rubygems' | ||
require 'rails/commands/server' | ||
require 'rack' | ||
require 'webrick' | ||
require 'webrick/https' | ||
|
||
module Rails | ||
class Server < ::Rack::Server | ||
def default_options | ||
super.merge({ | ||
:Port => 3000, | ||
:environment => (ENV['RAILS_ENV'] || "development").dup, | ||
:daemonize => false, | ||
:debugger => false, | ||
:pid => File.expand_path("tmp/pids/server.pid"), | ||
:config => File.expand_path("config.ru"), | ||
:SSLEnable => true, | ||
:SSLVerifyClient => OpenSSL::SSL::VERIFY_NONE, | ||
:SSLPrivateKey => OpenSSL::PKey::RSA.new( | ||
IO.read(File.expand_path("server.pem"))), | ||
:SSLCertificate => OpenSSL::X509::Certificate.new( | ||
IO.read(File.expand_path("server.pem"))), | ||
:SSLCertName => [["CN", WEBrick::Utils::getservername]] | ||
}) | ||
end | ||
end | ||
end | ||
|
||
|
||
APP_PATH = File.expand_path('../../config/application', __FILE__) | ||
require File.expand_path('../../config/boot', __FILE__) | ||
require 'rails/commands' | ||
|