Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

git push heroku master says "Everything up-to-date", but the app is not current

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!!

like image 996
Darkmatter5 Avatar asked Feb 21 '14 23:02

Darkmatter5


People also ask

How do I force push to Heroku?

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.


1 Answers

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 
like image 164
Kannan S Avatar answered Sep 23 '22 04:09

Kannan S