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

Look for config file at ./config/sidekiq.yml by default (if no -r flag provided) #4076

Closed
wants to merge 1 commit into from
Closed

Look for config file at ./config/sidekiq.yml by default (if no -r flag provided) #4076

wants to merge 1 commit into from

Conversation

greysteil
Copy link

Fixes #4075.

v5.2.4 changed Sidekiq's behaviour when no -r or -C flag was provided. Previously, it would look in the default locations for a config file, and this PR restores that behaviour.

opts[:config_file] ||= path if File.exist?(path)
end
%w[config/sidekiq.yml config/sidekiq.yml.erb].each do |filename|
opts[:config_file] ||= filename if File.exist?(filename)
Copy link
Contributor

Choose a reason for hiding this comment

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

That shouldn't work as far as #parse_config expects an absolute path. Does it make sense?

@mperham
Copy link
Collaborator

mperham commented Jan 8, 2019

I'm going to take #4077 since @Tensho made the original changes but thank you for the work and feedback.

@greysteil greysteil closed this Jan 8, 2019
@greysteil greysteil deleted the handle-no-require branch January 8, 2019 16:28
@Tensho
Copy link
Contributor

Tensho commented Jan 8, 2019

@greysteil @mperham Thank you 🙇

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

3 participants