Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Heroku is not updating my code?

Tags:

git

heroku

So I did some CSS changes on my local, ran git add ., git commit -am "Hello", git push heroku master, and for some reason two commmits ago, things stopped getting updated.

It commits fine, and doesn't show any input out of the ordinary.

I tried making a new branch and pushing it to the heroku branch, but still nada. What gives?

like image 938
Louis93 Avatar asked Mar 24 '14 03:03

Louis93


People also ask

Why my Heroku app is not working?

There are some errors which only occur when the app is rebooting so you will need to restart the app to see these log messages appear. For most apps, we also recommend enabling one of the free logging addons from https://elements.heroku.com/addons#logging to make sure that your historical log data is being saved.

How do I update my Heroku?

To upgrade via the Heroku Dashboard, navigate to your app settings page and click the Upgrade Stack button. Confirm that you want to upgrade, which will set the stack to the latest version.


2 Answers

Make sure your local branch is master. If you're using a different local brach then you have to use.

git push heroku your_local_branch_name:master
like image 67
Adam Mendoza Avatar answered Sep 30 '22 04:09

Adam Mendoza


Try running 'heroku releases' and 'heroku ps' on the command line.

heroku releases should show you which git version Heroku currently has running -- this will let you compare your local git revision to the one Heroku has, to ensure it actually received your updates.

Next, you might want to check heroku ps, and verify your app is running as expected.

Lastly, if all else fails, try running heroku run bash, and looking at the files Heroku has on your Dyno, if it doesn't add up -- email Heroku support!

like image 45
rdegges Avatar answered Sep 30 '22 06:09

rdegges