我正在尝试使用带有 Capistrano 的 puma gem。但是,当我这样做cap deploy
时,我得到了cannot load such file -- puma/capistrano (LoadError)
. 我在这里做错了什么?
宝石文件
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)
部署.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>'