![](/img/trans.png)
[英]Fail of Deployment of Ruby on Rails App in Azure Web App Linux
[英]Why does the Ruby on Rails Azure Web App Tutorial fail to deploy to the remote?
我正在尝试将Ruby on Rails 教程部署到 Microsoft Azure 并在推送到远程时继续遇到相同的错误:
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.6.2
remote: /home/site/wwwroot
remote: Found gemfile
remote: ~/site/wwwroot ~/site/repository
remote: Setting ruby version
remote: Running bundle clean
remote: /usr/local/.rbenv/versions/2.6.2/lib/ruby/2.6.0/rubygems.rb:283:in `find_spec_for_exe': Could not find 'bundler' (2.0.2) required by your /home/site/wwwroot/Gemfile.lock. (Gem::GemNotFoundException)
remote: Running bundle install
remote: To update to the latest version installed on your system, run `bundle update --bundler`.
remote: To install the missing version, run `gem install bundler:2.0.2`
remote: from /usr/local/.rbenv/versions/2.6.2/lib/ruby/2.6.0/rubygems.rb:302:in `activate_bin_path'
remote: from /usr/local/.rbenv/versions/2.6.2/bin/bundle:23:in `<main>'
remote: /usr/local/.rbenv/versions/2.6.2/lib/ruby/2.6.0/rubygems.rb:283:in `find_spec_for_exe': Could not find 'bundler' (2.0.2) required by your /home/site/wwwroot/Gemfile.lock. (Gem::GemNotFoundException)
尝试修复:
Azure Web App 是否有特定版本的 Bundler? 有什么方法可以找出我应该使用哪个 Bundler 版本进行开发?
通过将我的 Bundler 版本降级到我安装的默认版本(1.17.2),我能够找到部署解决方案。 更新我的 Gemfile.lock 以反映当前(默认)版本后,推送到远程成功。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.