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
It'll say
Fetching repository, done. Everything up-to-date
But if I go and look at the app, it's all old code. I did revert the site back to another version in Heroku about 15 days ago, but pushed updates to it since then and they worked.
Why is heroku not getting the most current files from my github repository? Is there a way to just reset the app and push the files from github again? I have production data in the database so I do NOT want to touch it.
Thanks in advance!!
To deploy your app to Heroku, use the git push command to push the code from your local repository's main branch to your heroku remote. For example: $ git push heroku main Initializing repository, done.
Kindly confirm your current branch is master.
git branch
If the pointer is not pointing the master, then check out to master branch
git checkout master
Commit your changes and try to push to heroku
git commit -am "xxxyyzzz" git push heroku master
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With