I have specifically included heroku/python
in the build pack section for my two Heroku Django projects but the build pack is triggered only when I deploy by pushing my changes in my main
git branch to the staging pipeline, not when I promote the changes to production. Why is that?
My builds are not stateful (as Heroku addresses in their doc on design considerations). By that I mean that I can handle all my configuration variables in the Heroku dashboard with one set of variables for staging
and a separate set for production
. There are no variables that are hard coded. All my configurations are dynamic.
The problem I see is that when I update my requirements.txt
with newer versions of Python modules/libraries, how do I instruct Heroku to trigger the build back in prod to rebuild the slug? Have I misconfigured my Heroku production pipeline? Or is it somehow unnecessary to rebuild slugs in prod but only in staging?
When I typed the title for my question here, Stack Overflow recommended the following questions and answers from other users which didn't seem to answer my question: