Updating a Heroku deployment #964
-
Hi, We have an instance of Password Pusher that we have running on a Heroku deployment. We absolutely love it! What is the best way of updating this one? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
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 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:
Also check the latest version of the configuration document. There are some new options that you may want to set. You can add these environment variables with I hope this helps! |
Beta Was this translation helpful? Give feedback.
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:
heroku pg:backups:capture --app application-name
heroku releases
&&heroku rollback
Also check the latest version of the configuration document. There are some new options that …