【发布时间】:2021-07-20 20:10:59
【问题描述】:
我在 heroku 应用程序上部署了完全相同的代码。我将 heroku 堆栈更新为 18 但现在由于需要在新堆栈发生之前进行构建,因此出现以下错误。 我尝试了所有不同的场景,包括 force push git push heroku master:main -f 但似乎没有任何效果。
这是在构建即将完成之前出现的错误日志。
远程:-----> 检测到 nginx-buildpack 应用
remote: cp: cannot stat 'bin/nginx-heroku-18': No such file or 目录
远程:!推送被拒绝,无法编译 nginx-buildpack 应用。
远程:
远程:!推送失败
远程:验证部署...
远程:
远程:!推送被拒绝到 my-app-prod。
远程:
致https://git.heroku.com/my-app-prod.git
! [远程拒绝] HEAD -> master(预接收挂钩 拒绝)
错误:未能将一些引用推送到 'https://git.heroku.com/my-app-prod.git'
【问题讨论】:
-
意思是:阅读之前的消息,看看为什么heroku认为你的代码有问题。特别注意:
remote: cp: cannot stat 'bin/nginx-heroku-18': No such file or directory和remote: ! Push rejected, failed to compile nginx-buildpack app.
标签: ruby-on-rails git heroku production-environment webpacker