mirror of
https://github.com/puma/puma.git
synced 2022-11-09 13:48:40 -05:00
Merge pull request #712 from yakara-ltd/pumactl-default-config
Make pumactl load config/puma.rb by default
This commit is contained in:
commit
02e05a8e15
1 changed files with 9 additions and 1 deletions
|
@ -66,7 +66,15 @@ module Puma
|
||||||
command = argv.shift
|
command = argv.shift
|
||||||
@options[:command] = command if command
|
@options[:command] = command if command
|
||||||
|
|
||||||
Puma::Configuration.new(@options).load if @options[:config_file]
|
unless @options[:config_file] == '-'
|
||||||
|
if @options[:config_file].nil? and File.exist?('config/puma.rb')
|
||||||
|
@options[:config_file] = 'config/puma.rb'
|
||||||
|
end
|
||||||
|
|
||||||
|
if @options[:config_file]
|
||||||
|
Puma::Configuration.new(@options).load
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
# check present of command
|
# check present of command
|
||||||
unless @options[:command]
|
unless @options[:command]
|
||||||
|
|
Loading…
Reference in a new issue