我将Ruby升级到版本2.5.1,RubyGems升级到2.7.6,将Bundler升级到1.16.1,这是所有最新版本。本地一切都很好,但是当我尝试在使用Capistrano部署时运行 sidekiq:quiet 任务时,我收到以下错误消息:
** bundler:无法加载命令:sidekiqctl(/var/www/test/htdocs/shared/bundle/ruby-2.5.1@gapfish/ruby/2.5.0/bin/sidekiqctl)
*** LoadError:无法加载此类文件 - bundler / dep_proxy
我已尝试运行gem update --system
和gem install bundler
,但没有帮助。任何人都有一些关于可能发生的事情的线索?
如果我在机器内部需要dep_proxy(使用irb),则可以找到它。
gapfish @ stage~ / current $ irb
2.5.1:001> require'bundler / dep_proxy'=>真
-
gem env:
RubyGems环境:
- RUBYGEMS版本:2.7.6
- RUBY VERSION:2.5.1(2018-03-29 patchlevel 57)[x86_64-linux]
- 安装目录:/var/www/www.gapfish.com/htdocs/.rvm/gems/ruby-2.5.1
- 用户安装目录:/var/www/www.gapfish.com/htdocs/.gem/ruby/2.5.0
- RUBY EXECUTABLE:/var/www/www.gapfish.com/htdocs/.rvm/rubies/ruby-2.5.1/bin/ruby
- 可执行目录:/var/www/www.gapfish.com/htdocs/.rvm/gems/ruby-2.5.1/bin
- SPEC CACHE目录:/var/www/www.gapfish.com/htdocs/.gem/specs
- SYSTEM CONFIGURATION目录:/var/www/www.gapfish.com/htdocs/.rvm/rubies/ruby-2.5.1/etc
- RUBYGEMS PLATFORMS:
- 红宝石
- x86_64的Linux的
- GEM路径:
- /var/www/www.gapfish.com/htdocs/.rvm/gems/ruby-2.5.1
- /var/www/www.gapfish.com/htdocs/.rvm/gems/ruby-2.5.1@global
- GEM配置:
- :update_sources =>真
- :verbose =>真
- :backtrace =>假
- :bulk_threshold => 1000
- “gem”=> “--no-ri --no-rdoc”
- 远程来源:
- SHELL PATH:
- /var/www/www.gapfish.com/htdocs/.rvm/gems/ruby-2.5.1/bin
- /var/www/www.gapfish.com/htdocs/.rvm/gems/ruby-2.5.1@global/bin
- /var/www/www.gapfish.com/htdocs/.rvm/rubies/ruby-2.5.1/bin
- /var/www/www.gapfish.com/htdocs/.rvm/bin
- 的/ usr / local / bin中
- 的/ usr / bin中
- / bin中
- 的/ opt / bin中
- /usr/x86_64-pc-linux-gnu/gcc-bin/4.9.3