Rails::Server (original) (raw)
Namespace
- CLASS Rails::Server::Options
Methods
D
M
N
O
S
Class Public methods
new(options = nil)Link
def initialize(options = nil) @default_options = options || {} super(@default_options) set_environment end
Instance Public methods
default_options()Link
def default_options super.merge(@default_options) end
served_url()Link
def served_url "#{options[:SSLEnable] ? 'https' : 'http'}://#{options[:Host]}:#{options[:Port]}" unless use_puma? end
set_environment()Link
def set_environment ENV["RAILS_ENV"] ||= options[:environment] end
start(after_stop_callback = nil)Link
def start(after_stop_callback = nil) trap(:INT) { exit } create_tmp_directories setup_dev_caching log_to_stdout if options[:log_stdout]
super() ensure after_stop_callback.call if after_stop_callback end