Deploy application with Rails 7

Hi guys! I’m trying to deploy a new Rails 7 application on heroku. I don’t now what is the correct Ruby version. I tried several versions but its doesn’t work.

Can any one tell me the correct version please?

Hey @Vicente-jpro, welcome to Rails! You can pick any version you’d like, since this is a new application you might as well go with 3.1.2.

Put this in a file named .ruby-version in the root of your project and Heroku should pick it up automatically. You’ll probably also need to update your Gemfile with this version.

.ruby-version

3.1.2

Gemfile, just ensure this line is in there somewhere.

ruby "3.1.2"
1 Like