Heroku, How to find out the ruby ​​version of a project?

In Heroku, I was added as a co-author of the project. I need to get this project at my local. And for this I need to know which Ruby version project has. Rails Project Version 3.1 I knew this through the Gemfile .

Please suggest what should I do for this?

+6
source share
2 answers

You can learn about this by using the stack in this project.

 heroku stack 

If this is not a cedar stack, you may have ruby ​​version information used on heroku

Output example

 $ heroku stack aspen-mri-1.8.6 * bamboo-mri-1.9.2 bamboo-ree-1.8.7 cedar (beta) 

* represents the use of the stack in this project and determines the version.

 aspen-mri-1.8.6 => MRI 1.8.6 bamboo-mri-1.9.2 => MRI 1.9.2 bamboo-ree-1.8.7 => REE 1.8.7 

In the case of a cedar stack. The default ruby ​​version is 1.9.2 MRI. If it changes to ruby ​​1.9.3, this trick is determined by the configuration. You can get information

 heroku config 

You can have RUBY_VERSION => ruby-1.9.3-p0 define if ruby ​​1.9.3-p0 is used.

+13
source

For those who are looking for this, it’s easy to get information using

heroku run ruby -v

+21
source

Source: https://habr.com/ru/post/910338/


All Articles