Home>

Problem installing Rails app on heroku. I have version 2.7.4 in my Gemfile. Gemfile.lock also specifies version 2.7.4. rvm uses version 2.7.4 too -rvm use 2.7.4.

Heroku uses 20 stack. The documentation says that 20 stack supports version 2.7.4.

When trying to push, an error occurs

Your Ruby version is 2.7.0, but your Gemfile specified 2.7.4
Bundler Output: Your Ruby version is 2.7.0, but your Gemfile specified 2.7.4

I ran the command to check the version and made sure that version 2.7.0 is in the heroku.

heroku run ruby ​​-v

I've tried a build heroku with the right version.

heroku create --buildpack https://github.com/heroku/heroku-buildpack-ruby.git

Version 2.7.4 is used there. It didn't help me. Is there an error in the documentation and only version 2.7.0 is supported? Is there a way to update the version on heroku?

Maybe the .ruby-version is incorrect?

Василиса2021-11-09 11:23:25
  • Answer # 1

    The problem was when pushing the application to heroku. The ruby-2.7.0 version was listed in /bin /bundle.

    You can remove the version, leave just ruby