Skip to content

Instantly share code, notes, and snippets.

@fdocr
Last active July 22, 2019 07:52
Show Gist options
  • Select an option

  • Save fdocr/d9410a987c36ca141922c7d546e80fb1 to your computer and use it in GitHub Desktop.

Select an option

Save fdocr/d9410a987c36ca141922c7d546e80fb1 to your computer and use it in GitHub Desktop.
heroku restart -a APP_NAME
heroku pg:reset -a APP_NAME DATABASE --confirm=APP_NAME
heroku run rake db:migrate -a APP_NAME
heroku run rake db:seed -a APP_NAME

One liner:

heroku restart -a APP_NAME; heroku pg:reset -a APP_NAME DATABASE --confirm=APP_NAME; heroku run rake db:migrate -a APP_NAME; heroku run rake db:seed -a APP_NAME

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