Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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
  • Loading branch information...
commit 07bc7c686fac50917743661b6506c78ebfc5adbf 1 parent 58900d8
@mugwump authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/hirefire/environment/heroku.rb
4 lib/hirefire/environment/heroku.rb
@@ -27,14 +27,14 @@ def workers(amount = nil)
# workers that are currently running on Heroku
if amount.nil?
# return['APP_NAME'])[:workers].to_i
- return['NEW_RELIC_APP_NAME']).select {|p| p['process'] =~ /worker.[0-9]+/}.length
+ return['APP_NAME']).select {|p| p['process'] =~ /worker.[0-9]+/}.length
# 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
Please sign in to comment.
Something went wrong with that request. Please try again.