Created
April 19, 2010 13:15
-
-
Save eric1234/371030 to your computer and use it in GitHub Desktop.
Heroku restart app
This file contains hidden or 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 'rubygems' | |
| require 'heroku' | |
| require 'sinatra' | |
| get '/' do | |
| # Replace XXXX@YYYYY.com with account email and ZZZZZZ with password. | |
| # Replace APP_NAME with the app you want to restart | |
| Heroku::Client.new('XXXX@YYYYY.com', 'ZZZZZZ').restart 'APP_NAME' | |
| 'Successfully restarted' | |
| end |
This file contains hidden or 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 'bounce' | |
| run Sinatra::Application |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment