Skip to content

Updating a Heroku deployment #964

Answered by pglombardo
douglasac10 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @douglasac10 - thanks for the nice words!

It depends on how you have it setup but most common way to update your Heroku deployment from the CLI (using the heroku command) is:

git checkout master
git pull origin --rebase
git push heroku master

# Then run the database migration to update the database tables (no data is lost)
heroku run rails db:migrate

Before you do that, it's always good to know/have some safeties:

  1. Backup and export the database first: heroku pg:backups:capture --app application-name
  2. Know about releases and how to rollback in case of error: heroku releases && heroku rollback

Also check the latest version of the configuration document. There are some new options that …

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@douglasac10
Comment options

@pglombardo
Comment options

Answer selected by douglasac10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Resolved The issue, question or bug has been resolved.
2 participants