首页 > 解决方案 > 推送到 heroku 失败(预接收挂钩被拒绝)

问题描述

remote: -----> Compressing...
remote:



!     Compiled slug size: 917.2M is too large (max is 500M).
remote:  !     See: http://devcenter.heroku.com/articles/slug-size
remote: 
remote:  !     Push failed
remote:  !
remote:  ! ## Warning - The same version of this code has already been built: 5788bbafef87b6c05d42cc0d2d3175846ae109bf
remote:  !
remote:  ! We have detected that you have triggered a build from source code with version 5788bbafef87b6c05d42cc0d2d3175846ae109bf
remote:  ! at least twice. One common cause of this behavior is attempting to deploy code from a different branch.
remote:  !
remote:  ! If you are developing on a branch and deploying via git you must run:
remote:  !
remote:  !     git push heroku <branchname>:main
remote:  !
remote:  ! This article goes into details on the behavior:
remote:  !   https://devcenter.heroku.com/articles/duplicate-build-version
remote: 
remote: Verifying deploy...
remote: 
remote: !   Push rejected to appname.
remote: 
To https://git.heroku.com/appname.git

请帮忙!已经清除了构建包的缓存。这似乎不起作用。尝试将代码推送到不同的分支,但这也不起作用。不知道发生了什么。我是唯一一个从事这个项目的人,并且一直在推动主人。我的应用程序有很多照片文件不知道是不是这个问题?

标签: ruby-on-railsgitheroku

解决方案


推荐阅读