git push heroku master says "Everything up-to-date", but the app is not current
When you run git push heroku master
, git is assuming that you are pushing from master, so if you changes are in other branch, you will try to push your master branch without changes.
You have two options
1.Merge your changes with master and push them.
Commit your changes in your actual branch, then merge them with master
git commit -a - m "your messages"git checkout mastergit merge your_feature_branchgit push heroku master
2.Push your changes from your actual branch
git push heroku your_feature_branch:master
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:masterheroku restart
You could now see your changes successfully on heroku.