Specify Ruby version
complete
p
phil
I’m working with a monorepo where two or more apps (all hosted on Render) sometimes have to use different versions of Ruby.
Unfortunately, Render guesses the Ruby version based on a .ruby-version file that we have to put in the root of our monorepo, but this means that I can’t use a different version of Ruby per app.
Ideally, we’d have RUBY_VERSION supported like NODE_VERSION is here https://render.com/docs/node-version
Log In
r
robdimarco
complete
r
robdimarco
The Ruby version can be set using RUBY_VERSION. Check out https://render.com/docs/ruby-version for more information
K
Kai Marshland
Ideally it would read from the specification in the Gemfile. Render seems to guess correctly based on my Gemfile, but perhaps that's only because the Gemfile is at the root of the repo.
p
phil
Kai Marshland: that is correct, it doesn't work, as far as I can tell, if you have multiple Gemfiles in multiple places. It'd be nicer to just be able to override the automatic detection like we can with node and python