This plugin https://github.com/lstoll/heroku-repo will allow you to do that. Just install and run heroku repo:rebuild -a appname
Force recreation of Heroku slug on git push
-
11-04-2022 - |
سؤال
I'm hosting a Django app on Heroku for a while already, and so far it worked fine. I now made some changes in the requirements.txt file, but feel like they are not correctly installed on Heroku when I make the git push. The log output shows the installation of some of the requirements, but not all of them. I guess the slug does not get recreated, but rather just updated. Is there a way to force the recreation of the complete slug?
المحلول
لا تنتمي إلى StackOverflow