Created
September 14, 2010 17:34
-
-
Save leviathan/579436 to your computer and use it in GitHub Desktop.
heroku dyno & worker setup from within the rails app
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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