mirror of
https://github.com/mperham/sidekiq.git
synced 2022-11-09 13:52:34 -05:00
Automatically check for sidekiq.yml.erb filename
This commit is contained in:
parent
91c4065fc4
commit
056444dc40
1 changed files with 5 additions and 1 deletions
|
@ -346,7 +346,11 @@ module Sidekiq
|
|||
die 1
|
||||
end
|
||||
@parser.parse!(argv)
|
||||
opts[:config_file] ||= 'config/sidekiq.yml' if File.exist?('config/sidekiq.yml')
|
||||
|
||||
%w[config/sidekiq.yml config/sidekiq.yml.erb].each do |filename|
|
||||
opts[:config_file] ||= filename if File.exist?(filename)
|
||||
end
|
||||
|
||||
opts
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue