Heroku打包失败,错误信息为Gem::RemoteFetcher::FetchError: bad response backend read error 503。

4

我似乎无法将代码部署到Heroku。在bundle阶段出现了错误。我可以在本地完成bundle。我收到如下错误信息:

Gem::RemoteFetcher::FetchError: bad response backend read error 503 (https://rubygems.global.ssl.fastly.net/gems/thor-0.18.1.gem)
An error occurred while installing thor (0.18.1), and Bundler cannot continue.
Make sure that `gem install thor -v '0.18.1'` succeeds before bundling.
!
!     Failed to install gems via Bundler.
!
!     Push rejected, failed to compile Ruby app

我尝试将Gemfile源从"https://rubygems.org"更改为"http://rubygems.org",但没有成功。这是怎么回事呢?


你能在本地安装那个宝石的版本吗? - Kevin
是的。它已经成功安装了。 - Ryan Linton
1
你尝试过删除Gemfile.lock文件并运行bundle吗? - NM Pennypacker
是的。两次。Heroku 上没有更改。 - Ryan Linton
1个回答

1
事实证明,我需要将“unf” gem添加到我的Gemfile中。在添加后,在Heroku上成功进行了bundle。

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接