gpt4 book ai didi

ruby-on-rails - 无法加载此类文件 -- puma/capistrano (LoadError)

转载 作者:太空宇宙 更新时间:2023-11-03 16:54:47 24 4
gpt4 key购买 nike

我正在尝试使用带有 Capistrano 的 puma gem。但是,当我执行 cap deploy 时,我得到 cannot load such file -- puma/capistrano (LoadError)。我在这里做错了什么?

gem 文件

gem 'puma', :git => "git://github.com/puma/puma.git"

Gemfile.lock

GIT
remote: git://github.com/puma/puma.git
revision: 2280b68d987bfe17f00bb92c772b971a4f073ca6
specs:
puma (2.0.0.b1)
rack (~> 1.2)

deploy.rb

require 'puma/capistrano'

堆栈跟踪

/Users/Kyle/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:in `require': cannot load such file -- puma/capistrano (LoadError)
from /Users/Kyle/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:in `require'
from /Users/Kyle/.rvm/gems/ruby-1.9.3-p125/gems/capistrano-2.13.4/lib/capistrano/configuration/loading.rb:152:in `require'
from ./config/deploy.rb:3:in `load'
from /Users/Kyle/.rvm/gems/ruby-1.9.3-p125/gems/capistrano-2.13.4/lib/capistrano/configuration/loading.rb:93:in `instance_eval'
from /Users/Kyle/.rvm/gems/ruby-1.9.3-p125/gems/capistrano-2.13.4/lib/capistrano/configuration/loading.rb:93:in `load'
from /Users/Kyle/.rvm/gems/ruby-1.9.3-p125/gems/capistrano-2.13.4/lib/capistrano/configuration/loading.rb:172:in `load_from_file'
from /Users/Kyle/.rvm/gems/ruby-1.9.3-p125/gems/capistrano-2.13.4/lib/capistrano/configuration/loading.rb:89:in `load'
from /Users/Kyle/.rvm/gems/ruby-1.9.3-p125/gems/capistrano-2.13.4/lib/capistrano/configuration/loading.rb:86:in `block in load'
from /Users/Kyle/.rvm/gems/ruby-1.9.3-p125/gems/capistrano-2.13.4/lib/capistrano/configuration/loading.rb:86:in `each'
from /Users/Kyle/.rvm/gems/ruby-1.9.3-p125/gems/capistrano-2.13.4/lib/capistrano/configuration/loading.rb:86:in `load'
from Capfile:4:in `load'
from /Users/Kyle/.rvm/gems/ruby-1.9.3-p125/gems/capistrano-2.13.4/lib/capistrano/configuration/loading.rb:93:in `instance_eval'
from /Users/Kyle/.rvm/gems/ruby-1.9.3-p125/gems/capistrano-2.13.4/lib/capistrano/configuration/loading.rb:93:in `load'
from /Users/Kyle/.rvm/gems/ruby-1.9.3-p125/gems/capistrano-2.13.4/lib/capistrano/configuration/loading.rb:172:in `load_from_file'
from /Users/Kyle/.rvm/gems/ruby-1.9.3-p125/gems/capistrano-2.13.4/lib/capistrano/configuration/loading.rb:89:in `load'
from /Users/Kyle/.rvm/gems/ruby-1.9.3-p125/gems/capistrano-2.13.4/lib/capistrano/configuration/loading.rb:86:in `block in load'
from /Users/Kyle/.rvm/gems/ruby-1.9.3-p125/gems/capistrano-2.13.4/lib/capistrano/configuration/loading.rb:86:in `each'
from /Users/Kyle/.rvm/gems/ruby-1.9.3-p125/gems/capistrano-2.13.4/lib/capistrano/configuration/loading.rb:86:in `load'
from /Users/Kyle/.rvm/gems/ruby-1.9.3-p125/gems/capistrano-2.13.4/lib/capistrano/cli/execute.rb:65:in `block in load_recipes'
from /Users/Kyle/.rvm/gems/ruby-1.9.3-p125/gems/capistrano-2.13.4/lib/capistrano/cli/execute.rb:65:in `each'
from /Users/Kyle/.rvm/gems/ruby-1.9.3-p125/gems/capistrano-2.13.4/lib/capistrano/cli/execute.rb:65:in `load_recipes'
from /Users/Kyle/.rvm/gems/ruby-1.9.3-p125/gems/capistrano-2.13.4/lib/capistrano/cli/execute.rb:31:in `execute!'
from /Users/Kyle/.rvm/gems/ruby-1.9.3-p125/gems/capistrano-2.13.4/lib/capistrano/cli/execute.rb:14:in `execute'
from /Users/Kyle/.rvm/gems/ruby-1.9.3-p125/gems/capistrano-2.13.4/bin/cap:4:in `<top (required)>'
from /Users/Kyle/.rvm/gems/ruby-1.9.3-p125/bin/cap:19:in `load'
from /Users/Kyle/.rvm/gems/ruby-1.9.3-p125/bin/cap:19:in `<main>'

最佳答案

你可以在 2.0.0.b7 中找到 require 'puma/capistrano'

https://github.com/puma/puma#capistrano-deployment

关于ruby-on-rails - 无法加载此类文件 -- puma/capistrano (LoadError),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13023003/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com