【发布时间】:2020-08-16 01:01:56
【问题描述】:
昨天我们的部署开始失败 Heroku,我不知道为什么,我们的代码库中没有任何与构建/依赖项相关的更改。一天以来,我一直在尝试调试它并使用不同的构建包组合,但似乎无法弄清楚。 Heroku 支持也无法帮助我。
基本上它在安装节点时会出错。我已经尝试了每个版本的节点和各种构建包。在构建失败之前,我们没有在 package.json 中指定我们的版本,但是我尝试使用所有不同的组合来执行此操作,但仍然没有运气。此时部署中断:
remote: Resolving node version 12.x...
remote: Error: Unknown error installing "12.x" of node
remote:
remote: -----> Build failed
remote:
remote: We're sorry this build is failing! You can troubleshoot common issues here:
remote: https://devcenter.heroku.com/articles/troubleshooting-node-deploys
remote:
remote: If you're stuck, please submit a ticket so we can help:
remote: https://help.heroku.com/
remote:
remote: Love,
remote: Heroku
remote:
remote: ! Push rejected, failed to compile Node.js app.
remote:
remote: ! Push failed
remote: Verifying deploy...
让我知道我可以提供的任何信息或调试任何人可能有的想法,在此先感谢!
【问题讨论】:
-
也许它与安装节点无关并且它只是抛出那个错误,您是否尝试过将您的代码更改与上一个稳定版本进行比较?
-
是的,代码从成功部署到停止时的变化是非常小的 ruby 调整,对发生的事情没有意义..
-
即使我尝试重新部署成功部署的相同代码,它现在也中断了,除了在 heroku 方面我看不到的东西之外,看不到这是如何发生的
标签: ruby-on-rails heroku deployment heroku-cli