From 197e093c66021f92655774c392c6c48098b251d3 Mon Sep 17 00:00:00 2001 From: Dan Duvall Date: Thu, 30 Jun 2011 21:24:47 +0200 Subject: [PATCH] This version support a rails_root environment variable. --- plugins/other/unicorn_status | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/other/unicorn_status b/plugins/other/unicorn_status index 5c99e0a5..d497d3df 100755 --- a/plugins/other/unicorn_status +++ b/plugins/other/unicorn_status @@ -73,7 +73,7 @@ when "config" puts "total_worker.label total_workers" puts "idle_worker.label idle_workers" else - m = Munin::UnicornStatus.new(RAILS_ROOT) + m = Munin::UnicornStatus.new(ENV['rails_root'] || RAILS_ROOT) puts "total_worker.value #{m.worker_count}" puts "idle_worker.value #{m.idle_worker_count}" end