Yes, redeployment will not alter your database.
Re-deploying a Rails app without overwriting the production database (Heroku)
-
30-08-2022 - |
Вопрос
I've got a Rails 4 app, hosted on Heroku. I'm running it in production already, and want to be able to make improvements to the app periodically, without touching the production database.
(There's user-generated data in the live app already, and my improvements are to the logic and design, not the database).
Am I correct in thinking that if I re-deploy the app with git push heroku master
after each modification then the data in the production db will remain intact?
Thanks.
Решение
Другие советы
Only the app code changes. The database is completely different and thus remains intact.
Не связан с StackOverflow