I have an app on Heroku that is running old code. I\'ve made a small change and committed the change. I then ran
git push heroku master
I
I had a similar issue and by no means my changes were visible on heroku. To reconfirm myself I even took a clone from heroku and it was obviously up to date.
I could resolve my issue only by following this approach:
Step 1: Make a new branch from master
git checkout -b new_branch
Step 2: Just add a comment in any file to make a new commit and then:
git add .
git commit -m "Just a test commit to push new branch to heroku"
Step 3: Push the new branch to heroku.
git push heroku new_branch:master
heroku restart
You could now see your changes successfully on heroku.