heroku / heroku.rb

DEPRECATED! Official Heroku Ruby Legacy API wrapper
161 stars 41 forks source link

Problem to change dyno type #93

Open diegorv opened 9 years ago

diegorv commented 9 years ago
heroku = Heroku::API.new(:api_key => API_KEY)
heroku.put_formation(APP_NAME, 'web' => 'Free')
heroku.post_ps_scale(APP_NAME, 'web'   , 1)

Error: body: "{\"id\":\"invalid_params\",\"error\":\"Requested type Free is not available in this dyno type.\"}"

Why that? I can't change my dyno size with API?

geemus commented 9 years ago

You should be able to change it, but we are still working out some bugs related to app tiers unfortunately. We should be fixing it to do this more automatically in the near future, but in the mean time you will need to make sure that the app is in the desired tier to allow for the type you want (in this case you want the free tier it looks like). You can change this by looking at the app in dashboard and clicking on "edit" next to where it says "Traditional Dynos" and switch to free. Or, I think you should be able to update the app via the api with free as the process tier. Either way, once the tier is set, this should work as you expect. Sorry for the confusion and inconvenience, hopefully we'll have this fixed to be more automatic soon.