From 07bc7c686fac50917743661b6506c78ebfc5adbf Mon Sep 17 00:00:00 2001 From: Stefan Frank Date: Wed, 14 Mar 2012 07:33:28 +0100 Subject: [PATCH] changed the environment variable that was used to retrieve the app's name back to APP_NAME. Make sure that you have set this variable using heroku config:add APP_NAME=my_awesome_app --- lib/hirefire/environment/heroku.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/hirefire/environment/heroku.rb b/lib/hirefire/environment/heroku.rb index b127955..8718170 100644 --- a/lib/hirefire/environment/heroku.rb +++ b/lib/hirefire/environment/heroku.rb @@ -27,14 +27,14 @@ def workers(amount = nil) # workers that are currently running on Heroku if amount.nil? # return client.info(ENV['APP_NAME'])[:workers].to_i - return client.ps(ENV['NEW_RELIC_APP_NAME']).select {|p| p['process'] =~ /worker.[0-9]+/}.length + return client.ps(ENV['APP_NAME']).select {|p| p['process'] =~ /worker.[0-9]+/}.length end ## # Sets the amount of Delayed Job # workers that need to be running on Heroku #client.set_workers(ENV['APP_NAME'], amount) - return client.ps_scale(ENV['NEW_RELIC_APP_NAME'], {"type" => "worker", "qty" => amount}) + return client.ps_scale(ENV['APP_NAME'], {"type" => "worker", "qty" => amount}) rescue RestClient::Exception # Heroku library uses rest-client, currently, and it is quite