Skip to content

Commit

Permalink
Allow config path to be set by environment variable - closes #273 #244
Browse files Browse the repository at this point in the history
  • Loading branch information
ankane committed May 31, 2019
1 parent 0d9edf3 commit ff2dd6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/pghero.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class << self
self.cache_hit_rate_threshold = 99
self.env = ENV["RAILS_ENV"] || ENV["RACK_ENV"] || "development"
self.show_migrations = true
self.config_path = "config/pghero.yml"
self.config_path = ENV["PGHERO_CONFIG_PATH"] || "config/pghero.yml"

class << self
extend Forwardable
Expand Down

0 comments on commit ff2dd6c

Please sign in to comment.