簡體   English   中英

使用 capistrano 部署時,Bundler 找不到“whenever” gem

[英]Bundler cannot find `whenever` gem, when deploying using capistrano

我正在嘗試使用 Capistrano 在暫存環境中部署我的應用程序。

運行cap staging deploy會導致錯誤提示:

bundler: failed to load command: whenever (/home/ubuntu/builder/shared/bundle/ruby/2.7.0/bin/whenever)

 DEBUG [52d26072]   Gem::Exception: can't find executable whenever for gem whenever. whenever is not currently included in the bundle, perhaps you meant to add it to your Gemfile?

我已經將 gem 包含在本地whenever中,但仍然無法找到它:這是我的 Gemfile 的一部分:

gem 'capistrano', 
gem 'capistrano-secrets-yml'
gem 'capistrano-rbenv'
gem 'capistrano-bundler'
gem 'capistrano-rails'
gem 'whenever', :require => false

我無法找到問題所在。 你能幫我么?

我會嘗試bundle exec cap staging deploy來確保您正在使用您的 bundle 執行命令。 此外,您可能需要刪除require => false ,因為它在您加載 bundle 時不包含庫

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM