Skip to content

Commit

Permalink
Merge pull request #358 from zendesk/liveness-probe-again
Browse files Browse the repository at this point in the history
  • Loading branch information
deepredsky authored Oct 16, 2023
2 parents 5c5f88c + 661fcd5 commit d4e5692
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/racecar/ctl.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ def liveness_probe(args)
require "racecar/liveness_probe"
parse_options!(args)

RailsConfigFileLoader.load! unless config.without_rails?
if ENV["RAILS_ENV"] && File.exist?("config/racecar.yml")
Racecar.config.load_file("config/racecar.yml", ENV["RAILS_ENV"])
end

if File.exist?("config/racecar.rb")
require "./config/racecar"
Expand Down

0 comments on commit d4e5692

Please sign in to comment.