Skip to content

Instantly share code, notes, and snippets.

@eric1234
Created April 19, 2010 13:15
Show Gist options
  • Select an option

  • Save eric1234/371030 to your computer and use it in GitHub Desktop.

Select an option

Save eric1234/371030 to your computer and use it in GitHub Desktop.
Heroku restart app
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
require 'bounce'
run Sinatra::Application
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment