Azure Web App Ruby runtime version different from the one specified

Viewed 179

I created a Azure Web App to run a Ruby on Rails app. I specified Ruby runtime version 2.6

enter image description here

The app works locally with "rails server".
Although, when deploying the app with local git I can see the build agent is using ruby 2.3.8 :

git push azure-stage master
Enumerating objects: 12, done.
Counting objects: 100% (12/12), done.
...
remote: Bundle install with no 'without' options
remote: Defaulting gem installation directory to /tmp/bundle
remote: Defaulting site config directory to /home/site/config
remote: Using ruby version 2.3.8
remote: /home/site/wwwroot
remote: Found gemfile
remote: ~/site/wwwroot ~/site/repository
remote: Setting ruby version
remote: Running bundle clean
...
remote: ahoy_matey-3.1.0 requires ruby version >= 2.4, which is incompatible with the
remote: current version, ruby 2.3.3p222
remote: An error has occurred during web site deployment.
remote: bundler failed

Anyone have any idea why this is happening and how to solve it?

When running the quickstart example I can see the build agent also uses ruby 2.3.8
https://docs.microsoft.com/en-us/azure/app-service/quickstart-ruby

0 Answers
Related