lib/riemann/dash/app.rb in riemann-dash-0.2.11 vs lib/riemann/dash/app.rb in riemann-dash-0.2.12
- old
+ new
@@ -15,10 +15,10 @@
def config
self.class.config
end
def self.load(filename)
- filename ||= 'config.rb'
+ filename ||= ENV['RIEMANN_DASH_CONFIG'] || 'config.rb'
unless config.load_config(filename)
# Configuration failed; load a default view.
puts "No configuration loaded; using defaults."
end