heroku application still referencing old files after push

谁都会走 提交于 2019-12-04 23:52:47

问题


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


回答1:


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.



来源:https://stackoverflow.com/questions/4209546/heroku-application-still-referencing-old-files-after-push

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!