Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make pumactl load config/puma.rb by default #712

Merged
merged 1 commit into from Jul 14, 2015
Merged

Make pumactl load config/puma.rb by default #712

merged 1 commit into from Jul 14, 2015

Conversation

chewi
Copy link
Contributor

@chewi chewi commented Jun 11, 2015

config/puma/#{env}.rb isn't tried because there is no environment option for pumactl, though this could be added.

@@ -66,7 +66,11 @@ 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] ||= ('config/puma.rb' if File.exist?('config/puma.rb'))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you make this more than 1 line? It's super hard to read.

config/puma/#{env}.rb isn't tried because there is no environment
option for pumactl, though this could be added.
@chewi
Copy link
Contributor Author

chewi commented Jun 16, 2015

Sorry, bad habit!

evanphx added a commit that referenced this pull request Jul 14, 2015
Make pumactl load config/puma.rb by default
@evanphx evanphx merged commit 02e05a8 into puma:master Jul 14, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants