git push heroku master everything up to date 但应用程序没有更新

git push heroku master everything up to date but the app doesn't update

所以我可以在本地看到变化,但是即使在成功推送到 heroku 之后,它仍然没有反映出这些变化。我已经尝试了此 link 中建议的所有方法,但没有成功,所以我不太确定发生了什么。

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

此外,我已经检查过 heroku git 存储库确实包含新文件并且确实包含新文件,所以我不知道为什么 heroku 不加载它们。

它可能是服务工作者...所以如果您使用 CRA,它永远不会加载页面(它会加载 drom catch)。另外,检查您是否有 proc 文件以及它是否正确捆绑。但首先尝试在 ctrl+f5

上重新加载页面

尝试在其他浏览器或隐身模式下打开它,因为它可能会缓存在您当前的浏览器中以提供旧文件。您还应该清除浏览器的缓存。