Skip to content

Instantly share code, notes, and snippets.

@leviathan
Created September 14, 2010 17:34
Show Gist options
  • Save leviathan/579436 to your computer and use it in GitHub Desktop.
Save leviathan/579436 to your computer and use it in GitHub Desktop.
heroku dyno & worker setup from within the rails app
require "heroku"
client = Heroku::Client.new("username", "password")
# Update the number of dynos used by the application
# app_name = the name of the application
# x = the integer number of dynos you want to set, e.g. 3
client.set_dynos("app_name", x)
# Update the number of workers used by the application
# app_name = the name of the application
# x = the integer number of workers you want to set, e.g. 3
client.set_workers("app_name", x)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment