1

I have made an Angular app with Yeoman and deployed it to heroku. The initial push was fine. I was able to access the website. However, when I made some changes and try to do the git dance:

    git add .
    git commit -m "message"
    git push heroku master

the website is not updated with the new changes even though there is no error occurred during the push.

In order to check if the changes are actually pushed to heroku, I checked out a new branch and make some changes then commit and run:

   git add .
   git commit -m "new changes"
   git push heroku new_branch:master
   git co master
   git pull heroku master

After that, I am able to see the local master branch is able to pull the new changes from heroku. Therefore, my question is that why the website is not showing the changes. (PS: I ran heroku restart everytime I push to heroku. Also, during pushing, the terminal shows that gifsicle and jsonify seems to not work correctly. Could that be the cause?)

Joe Clay
  • 33,401
  • 4
  • 85
  • 85
WeiRoR
  • 25
  • 2
  • 7
  • 1
    Might be an obvious question, but do you have automatic deployments from Github enabled? – James Ives Feb 27 '16 at 00:12
  • What do you mean? On heroku? I am using heroku git, so it shouldn't matter. That's why I was pushing the changes to heroku. It works perfectly on my other apps. – WeiRoR Feb 27 '16 at 01:59
  • I had this problem already and hadn't found the reason. After a few minutes everything appeared updated, as if it were some cache expiration problem. I'm assuming you already emptied your cache. – Ed de Almeida Feb 27 '16 at 06:36
  • Try to flush DNS and see what happens? – rbashish Feb 27 '16 at 08:39
  • I checked again today. The updates were still not there. – WeiRoR Feb 27 '16 at 20:22

1 Answers1

3

For anyone else ending up here with the same question. Make sure you build your client code before you push. I had the exact same problem, spent hours debugging only to realize i had forgotten to run ng-build -prod before pushing. My local changes was pushed but my client production code was obviously still the same. ;(

Out of Orbit
  • 543
  • 2
  • 5
  • 17