Skip to content

Instantly share code, notes, and snippets.

@wrburgess
Created February 4, 2012 23:12
Show Gist options
  • Save wrburgess/1741012 to your computer and use it in GitHub Desktop.
Save wrburgess/1741012 to your computer and use it in GitHub Desktop.
Heroku Commands #heroku #commands

#Creation

heroku create #sets up heroku app for local dev app

heroku create --stack cedar #sets up heroku app on specific stack

heroku rename [example app name] #changes default heroku app name

heroku addons:add custom_domains #adds custom_domains add-on to app

heroku domains:add example.com #adds new domain to heroku app

heroku open #opens browser of application on heroku

#Database

heroku pg:reset

heroku rake db:migrate

heroku rake db:seed

heroku rake db:setup

#Pre-deploy

bundle exec rake assets:precompile

#Post-deply

heroku rake db:migrate

#Share Ownership

heroku sharing:add

heroku sharing:transfer

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