Dokku由于捆绑器版本而失败

问题描述 投票:0回答:1

我安装了Ruby on Rails应用程序,并与Dokku一起运行。今天当我尝试再次部署它时,收到以下错误:

--> Installing dependencies using bundler 2.0.1
       Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin -j4 --deployment
       Activating bundler (2.0.2) failed:
       Could not find 'bundler' (2.0.2) required by your /tmp/build/Gemfile.lock.
       To update to the latest version installed on your system, run `bundle update --bundler`.
       To install the missing version, run `gem install bundler:2.0.2`
       Checked in 'GEM_PATH=vendor/bundle/ruby/2.5.0', execute `gem env` for more information

       To install the version of bundler this project requires, run `gem install bundler -v '2.0.2'`
       Bundler Output: Activating bundler (2.0.2) failed:
       Could not find 'bundler' (2.0.2) required by your /tmp/build/Gemfile.lock.
       To update to the latest version installed on your system, run `bundle update --bundler`.
       To install the missing version, run `gem install bundler:2.0.2`
       Checked in 'GEM_PATH=vendor/bundle/ruby/2.5.0', execute `gem env` for more information

       To install the version of bundler this project requires, run `gem install bundler -v '2.0.2'`

       !
       !     Failed to install gems via Bundler.

不确定如何解决这个问题,并且无法找到与Dokku这类问题有关的任何参考。

ruby-on-rails dokku
1个回答
0
投票

我通过使用其官方文档更新Dokku来解决此问题。更新之后,我可以轻松部署。

© www.soinside.com 2019 - 2024. All rights reserved.