cannot load such file -- puma/capistrano (LoadError) #161

Closed
kyledecot opened this Issue Oct 23, 2012 · 3 comments

Projects

None yet

4 participants

@kyledecot

Gemfile

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

deploy.rb

require 'puma/capistrano'

When running cap deploy I get the following stacktrace:

/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>'
@jinzhu jinzhu added a commit to jinzhu/puma that referenced this issue Oct 24, 2012
@jinzhu jinzhu update Manifest.txt, Fixes #161 d166c1a
@jinzhu

BTW, you need to require 'bundler/setup' before require 'puma/capistrano' in your deploy.rb

@steveklabnik

This is just a PSA, but you can use :github => "puma/puma" if you're on Bundler 1.2. :)

@evanphx evanphx added a commit that closed this issue Nov 22, 2012
@evanphx evanphx Put the right files in the gem
Fixes #162
Fixes #161
d2a6961
@evanphx evanphx closed this in d2a6961 Nov 22, 2012
@kyledecot

Thanks for all the hard work on this guys!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment