Ruby on rails Azure应用程序服务上的Rails:“;找不到';捆扎机&x27;(2.1.4)“;

Ruby on rails Azure应用程序服务上的Rails:“;找不到';捆扎机&x27;(2.1.4)“;,ruby-on-rails,ruby,azure,rubygems,azure-web-app-service,Ruby On Rails,Ruby,Azure,Rubygems,Azure Web App Service,我正在尝试用Rails 6.0.3.4部署我的Ruby 2.6.2,并使用Bundler获得GemNotFoundException: 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

我正在尝试用Rails 6.0.3.4部署我的Ruby 2.6.2,并使用Bundler获得GemNotFoundException:

 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`
在我的本地机器上运行“gem list bundler”返回,我删除了default版本

bundler (2.1.4)
我尝试过更新gem,它是3.1.4

我非常确定我正确地将其推到了Azure,因为我创建了一个新的应用程序服务,并使用bundler 2.1.4推送了我的Rails应用程序,并且尝试重新启动VM


Azure非常新,所以我对这一点很感兴趣。

您项目的Gemfile是什么样子的?你可以检查这个来交叉验证你的步骤。你能弄明白吗?@user3911483我想我最后做了一个新项目。但是解决这个问题的通常方法是检查底部的gemLock文件,这将说明它使用的是什么bundler。他们都必须配合才能使它发挥作用。