Rails on Azure app service: “Could not find 'bundler' (2.1.4)”

PlasticTrees 26 Reputation points
2020-11-21T12:40:08.16+00:00

I'm trying to deploy my Ruby 2.6.2 with Rails 6.0.3.4 and I'm getting GemNotFoundException with Bundler:

Running bundle check

`find_spec_for_exe': Could not find 'bundler' (2.1.4) required by your /home/site/wwwroot>/Gemfile.lock. (Gem::GemNotFoundException)
To update to the latest version installed on your system
To update to the latest version installed on your system, run `bundle update --bundler`.
To install the missing version, run `gem install bundler:2.1.4`

Running 'gem list bundler' on my local machine returns, I remove the defualt version.

bundler (2.1.4)

I've tried updating gem and it's 3.1.4.

I'm pretty sure I'm correctly pushing it to Azure, as I made a new app service and pushed my Rails app with bundler 2.1.4 and I've tried restarting the VM.

Quite new to Azure, so am pretty stuck on this.

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,968 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Ryan Hill 30,281 Reputation points Microsoft Employee Moderator
    2020-12-01T04:46:10.637+00:00

    Hi @PlasticTrees ,

    I did some additional looking. Currently, Ruby is only supported for Linux hosted app service. That's more than likely the issue you were running into if you were deploy to a Windows hosted app. I am pleased to hear that oauth library anonymous user-msft provided was able to provide helpful.

    Regards,
    Ryan


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.