Created
May 19, 2019 20:20
-
-
Save yoones/0d0680a006c33a728f56ea33100905a2 to your computer and use it in GitHub Desktop.
server options
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
class_option :config, aliases: "-c", type: :string, default: "config.ru", | |
desc: "Uses a custom rackup configuration.", banner: :file | |
# [...] | |
def server_options | |
{ | |
user_supplied_options: user_supplied_options, | |
server: using, | |
log_stdout: log_to_stdout?, | |
Port: port, | |
Host: host, | |
DoNotReverseLookup: true, | |
config: options[:config], | |
environment: environment, | |
daemonize: options[:daemon], | |
pid: pid, | |
caching: options[:dev_caching], | |
restart_cmd: restart_command, | |
early_hints: early_hints | |
} | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment