1
0
Fork 0
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:
jeffrey6052 2015-12-25 18:35:49 +08:00
parent 81c2ccb6d4
commit 04dd026c06

View file

@ -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