简体   繁体   English

Heroku未检测到Ruby版本

[英]Heroku Not Detecting Ruby Version

I put the ruby version 2.3.1 in my gemfile, but Heroku keeps using 2.4.4. 我将ruby版本2.3.1放在了我的gemfile中,但是Heroku继续使用2.4.4。 How do I make it so Heroku recognizes the version specified in the gemfile? 如何使Heroku识别gemfile中指定的版本?

尝试通过键入heroku运行“ ruby​​ -v”来使用heroku控制台,并给出命令以使用您希望他使用的红宝石版本

You are probably on the heroku-18 stack which it the current default. 您可能在当前默认值的heroku-18堆栈上。 Please note that Ruby 2.3.x is not available on this stack . 请注意,Ruby 2.3.x此堆栈上不可用。

You have two options: 您有两种选择:

  1. Update your Ruby version to a more recent version or 将您的Ruby版本更新为最新版本,或者
  2. Downgrade Heroku to use an older stack. 降级Heroku以使用较旧的堆栈。

Given that the maintenance phase for Ruby 2.3.x has ended anyway I would suggest updating our application to use at least Ruby 2.4.4 . 鉴于Ruby 2.3.x的维护阶段已经结束,我建议更新应用程序以至少使用Ruby 2.4.4

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM