【问题标题】:Hit a snag on step 4.7在步骤 4.7 中遇到障碍
【发布时间】:2019-03-08 17:06:53
【问题描述】:

我已经开始通过 The Odin 项目学习编码,并尝试通过您的第一个 Rails 应用程序的第 4.7 步。已经尝试了一切,甚至升级并询问了其他人有关此问题的问题,每次我尝试部署到 Heroku 时都会收到此错误。

我已尝试升级到最新版本的 Ruby,但仍然无法取得进展。我也使用了其他网站和其他开发人员的教程和命令。

remote:  !
remote:  !     An error occurred while installing ruby-2.3.7
remote:  !     
remote:  !     This version of Ruby is not available on Heroku-18. The minimum supported version
remote:  !     of Ruby on the Heroku-18 stack can found at:
remote:  !     
remote:  !     https://devcenter.heroku.com/articles/ruby-support#supported-runtimes
remote:  !
remote:  !     Push rejected, failed to compile Ruby app.
remote: 
remote:  !     Push failed
remote: Verifying deploy...
remote: 

一旦能够部署到 Heroku,之后应该会出现一个指向应用程序的链接,您必须先将数据库迁移到 Heroku,然后您的应用程序才能在 Web 上查看。

【问题讨论】:

标签: ruby heroku


【解决方案1】:

您是否检查过这些日志/消息?
如前所述,该错误是因为 Heroku 不支持您请求的 ruby​​ 版本。
检查链接given

更改您的 Gemfile,以使用 ruby​​ 2.4.52.5.32.6.0

【讨论】:

  • 玩了 3 天后,我将 Gemfile 从 2.3.7 更改为 2.5.3 以及 Gemfile.lock 和 .ruby-version 后能够部署我的应用程序。
猜你喜欢
  • 1970-01-01
  • 2016-03-02
  • 2011-04-16
  • 2022-10-22
  • 1970-01-01
  • 2011-10-16
  • 1970-01-01
  • 1970-01-01
  • 2020-01-11
相关资源
最近更新 更多