Don't balloon @original_options with --restart on restart.

Our restart_command would pass in `--restart` which means
that if the @original_options already contains --restart
it would keep getting another --restart appended.

Nothing here that would break the bank, but just a nicety.
This commit is contained in:
Kasper Timm Hansen 2018-07-07 10:15:56 +02:00
parent 161ed37d71
commit 1d97b8f9e4
No known key found for this signature in database
GPG Key ID: 191153215EDA53D8

@ -136,7 +136,7 @@ class ServerCommand < Base # :nodoc:
def initialize(args, local_options, *)
super
@original_options = local_options
@original_options = local_options - %w( --restart )
deprecate_positional_rack_server_and_rewrite_to_option(@original_options)
@log_stdout = options[:daemon].blank? && (options[:environment] || Rails.env) == "development"
end