I put the ruby version 2.3.1 in my gemfile, but Heroku keeps using 2.4.4. How do I make it so Heroku recognizes the version specified in the gemfile?
尝试通过键入heroku运行“ ruby -v”来使用heroku控制台,并给出命令以使用您希望他使用的红宝石版本
You are probably on the heroku-18
stack which it the current default. Please note that Ruby 2.3.x
is not available on this stack .
You have two options:
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
.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.