1
0
Fork 0
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:
Evan Phoenix 2015-07-14 10:34:45 -07:00
commit 02e05a8e15

View file

@ -66,7 +66,15 @@ module Puma
command = argv.shift
@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
unless @options[:command]