I'd like to use a specific version of ruby when running my app in production on Heroku.
As explained here, you only have to add a line like ruby "2.0.0"
in your Gemfile.
However, as I use RVM locally, I already specified the ruby version to use in a .ruby-version
file in the root directory of the project that only contains the line ruby-2.0.0-p0
.
To avoid code duplication, I'd like the version to be specified in only one place, so that I'm sure that the same version is always used in development and on Heroku.
Is there a way to do that ?