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.



Gemfile, just ensure this line is in there somewhere.

ruby "3.1.2"
1 Like

Hi @nickhammond! Thanks for your help. I going to try. :smiley: