views:

15

answers:

1

This is a snippet of my code trying to turn on the number of workers on my heroku instances:

heroku = Heroku::Client.new(ENV['HEROKU_USER'], ENV['HEROKU_PASS'])
puts "created the client"
heroku.set_workers(ENV['HEROKU_APP'], 1)
puts "set workers to 1"

I stored all the values, HEROKU_USER, HEROKU_PASS, and HEROKU_APP as a heroku config:add variable

But when I run this cron task, I end up with an error:

"Rake Aborted!  Resource Not Found"

What do I need to do? This snippet had worked correctly till I wanted to move the keys out of the repository after changing them and put just into a config var on heroku.

A: 

See my answer here: http://stackoverflow.com/questions/3654509/heroku-delayed-job-autoscale-branch-restclientresourcenotfound/3665065#3665065

Make sure those environment variables exist and are set properly. That's what tripped up the poster of the question I linked above.

tfe