Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

heroku application still referencing old files after push

Tags:

push

heroku

I've been experiencing this very odd problem lately in Heroku.

I develop and test locally, then I push the changes to Heroku. Even though the files pushed have been changed (and Heroku does recognize it and push the new files), when I look at the exact webpage on Heroku, it behaves as though it was still using the old version of the file that I just pushed.

When I see the HTML source in firebug, I can actually confirm that the old file is being used. I've tried using git push -f to "force" the git push, but no luck

any ideas??

like image 688
Varun Avatar asked Nov 17 '10 21:11

Varun


2 Answers

Try heroku restart to force a restart of all the dynos. I'm not positive but I've seen indications like this that they tend to "lazy restart" the dynos and workers after a push. If you want to guarantee all workers and dynos are working off the latest pushed code, do a restart after your push.

like image 129
tfe Avatar answered Oct 07 '22 01:10

tfe


I know this is old, but I just recently had this problem, turned out it was just my cache. If you hit ctrl + F5 it hard refreshes the page and the cache. Worked in my case after searching everywhere.

like image 20
KamajiiSC Avatar answered Oct 06 '22 23:10

KamajiiSC