Skip to content

Commit

Permalink
Merge pull request puma#712 from yakara-ltd/pumactl-default-config
Browse files Browse the repository at this point in the history
Make pumactl load config/puma.rb by default
  • Loading branch information
evanphx committed Jul 14, 2015
2 parents 9da5326 + dee695f commit 02e05a8
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion lib/puma/control_cli.rb
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,15 @@ def initialize(argv, stdout=STDOUT, stderr=STDERR)
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]
Expand Down

0 comments on commit 02e05a8

Please sign in to comment.