We have a .ruby-version file in our application directory, which contains
2.6.8, as stated in the Overview
<https://cloud.google.com/appengine/docs/flexible/ruby/runtime#overview> of
the "The Ruby Runtime" documentation page
<https://cloud.google.com/appengine/docs/flexible/ruby/runtime>. I have
seen in Source code
<https://github.com/GoogleCloudPlatform/ruby-docker> available
on GitHub, that now ruby defaults to 2.7.5. But the question is why our
.ruby-version file is not taken into account? Documentation says "*You can
specify which version of the Ruby interpreter to use by providing it as the
contents of a .ruby-version file in your application directory*"

Thank you in advance

José Antonio Sanchez Ortiz

El mar, 29 mar 2022 a las 17:48, 'George (Cloud Platform Support)' via
Google App Engine (<[email protected]>) escribió:

> Hello,
>
> You are right, the Ruby runtime uses version 2.7.5. Source code
> <https://github.com/GoogleCloudPlatform/ruby-docker> is available on
> GitHub. Related details are to be found in the Overview
> <https://cloud.google.com/appengine/docs/flexible/ruby/runtime#overview> of
> the "The Ruby Runtime" documentation page
> <https://cloud.google.com/appengine/docs/flexible/ruby/runtime>.
>
> If you need to use a certain version of a programming language, you may
> consider creating a custom runtime, as documented on the "App Engine custom
> runtimes documentation" page
> <https://cloud.google.com/appengine/docs/flexible/custom-runtimes>.
>
> On Tuesday, 29 March 2022 at 09:49:59 UTC-4 [email protected] wrote:
>
>> Hi
>>
>> We are running a project in an App Engine from several years ago. We are
>> using flexible ruby. We have a .ruby-version file in our application
>> directory, with version 2.6.3, but all the deployments we have tried today
>> are ignoring the .ruby-version file, and they are installing the 2.7.5 ruby
>> version, which fails as we have a dependencies problem. In the app.yaml we
>> have:
>>   env: flex
>>   runtime: ruby
>>
>> We have tested with runtime: ruby26, but always is using ruby 2.7.5, no
>> matters which value we are using in runtime: ruby and in .ruby-version file
>>
>> Thanks in advance
>>
>> José Antonio Sánchez Ortiz
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/google-appengine/5799a8ac-f29f-4a90-a433-a76d911b8e02n%40googlegroups.com
> <https://groups.google.com/d/msgid/google-appengine/5799a8ac-f29f-4a90-a433-a76d911b8e02n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/CAMBtVKX0wq57aSSJUgsJDRbsSFLJAoCQ-xZHScorP0Mi%2BdQR5g%40mail.gmail.com.

Reply via email to