简体   繁体   中英

Ruby On Rails Error While Pushing To Heroku

I am fairly new to programming and would like some assistance with a problem.
I am currently facing with Heroku. I'm trying to push my Ruby on Rails app to Heroku using Git push Heroku master, but I keep getting 2 errors stating:

An error occurred while installing ruby-2.3.0
! This version of Ruby is not available on Heroku-18.
error: failed to push some refs to ' https://git.heroku.com/nameless-atoll-25465.git '

I am on my master branch on Ruby on Rails while doing this, but it seems like nothing is changing to make the ends meet.
I also spent lots of time on here trying to sort it out, and nothing seems to work. I've tried updating Git to Heroku on the master branch but the Ruby terminal keeps outputting on branch master nothing to commit whenever I try to update it using the Git commands. Has anyone found a solution to this issue? I'm currently running Ruby 2.3.0.

The heroku-18 stack only supports Ruby 2.4.5 and 2.5.3.
See https://devcenter.heroku.com/articles/ruby-support#supported-runtimes

You should upgrade Ruby in your app, or downgrade to the heroku-16 stack.
Obviously, upgrading is always better than downgrading.

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.

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