我似乎无法部署到Heroku。它在捆绑包上一直失败。我可以在本地捆绑。我收到以下错误:
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"
,但没有任何成功。知道这里发生了什么吗?
事实证明,我需要将"unf"gem添加到我的宝石文件中。添加该捆绑包后,在 Heroku 上成功。