mirror of
https://github.com/puma/puma.git
synced 2022-11-09 13:48:40 -05:00
DSL need cli_options
use case: $: puma -C puma.rb -d but in puma.rb: if @options[:daemon] # got nil, can not work log_path = File.join(app_root,"log/stdout.log") stdout_redirect log_path , log_path end
This commit is contained in:
parent
81c2ccb6d4
commit
04dd026c06
1 changed files with 1 additions and 0 deletions
|
@ -54,6 +54,7 @@ module Puma
|
||||||
end
|
end
|
||||||
|
|
||||||
def load
|
def load
|
||||||
|
@conf.merge! @cli_options
|
||||||
DSL.load(@conf, @cli_options[:config_file])
|
DSL.load(@conf, @cli_options[:config_file])
|
||||||
|
|
||||||
# Load the options in the right priority
|
# Load the options in the right priority
|
||||||
|
|
Loading…
Reference in a new issue