Skip to content

Instantly share code, notes, and snippets.

@karthiks
Created March 13, 2015 18:51
Show Gist options
  • Save karthiks/497eaceffb2d83824124 to your computer and use it in GitHub Desktop.
Save karthiks/497eaceffb2d83824124 to your computer and use it in GitHub Desktop.
Heroku CheatSheet When You Have Several Apps In Your Account

Heroku CheatSheet When You Have Several Apps In Your Account

Restart App in Heroku

heroku restart -a my-app-name

Fetch Environment configuration for a particular app

heroku config --app my-app-name

Set Environment key/value pair for a particular app

heroku config:set key1=value1 key2=value2 key3=value3 --app my-app-name

Remove Key/Value pair from Environment for a particular App

heroku config:unset key --app my-app-name

Run Rails Console of a particular app

heroku run console --app my-app-name

Run rake task of a particular app

heroku run rake my-rake-task --app my-app-name

Run logs (with tailing option) for a particular app

heroku logs -t --app my-app-name

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment