Closed edwinlunando closed 11 years ago
Did you bundle install
(or maybe bundle update
) - because it looks like it cannot find the RVM plugin for Capistrano....
@Kriechi Of course. I've run it so many times because I thought I forgot to run bundle install. This is the prove.
Using capistrano (3.0.0)
Using capistrano-rails (1.0.0)
Using capistrano-rvm (0.0.1) from git://github.com/capistrano/rvm.git (at master)
I do not understand what is wrong.
Whats in your Capfile on line 18? Your are using Rails without the bundler? Maybe try to require the bundler plugin in your Capfile
require 'capistrano/rvm'
.require 'capistrano/setup'
require 'capistrano/deploy'
require 'capistrano/rvm'
require 'capistrano/rails/assets'
require 'capistrano/rails/migrations'
Dir.glob('lib/capistrano/tasks/*.cap').each { |r| import r }
Here are the errors
cannot load such file -- capistrano/rvm
/home/edwinlunando/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require'
/home/edwinlunando/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require'
/home/edwinlunando/Projects/edu-lab-website/Capfile:3:in `<top (required)>'
/home/edwinlunando/.rvm/gems/ruby-2.0.0-p247@global/gems/rake-10.1.0/lib/rake/rake_module.rb:25:in `load'
/home/edwinlunando/.rvm/gems/ruby-2.0.0-p247@global/gems/rake-10.1.0/lib/rake/rake_module.rb:25:in `load_rakefile'
/home/edwinlunando/.rvm/gems/ruby-2.0.0-p247@global/gems/rake-10.1.0/lib/rake/application.rb:637:in `raw_load_rakefile'
/home/edwinlunando/.rvm/gems/ruby-2.0.0-p247@global/gems/rake-10.1.0/lib/rake/application.rb:94:in `block in load_rakefile'
/home/edwinlunando/.rvm/gems/ruby-2.0.0-p247@global/gems/rake-10.1.0/lib/rake/application.rb:165:in `standard_exception_handling'
/home/edwinlunando/.rvm/gems/ruby-2.0.0-p247@global/gems/rake-10.1.0/lib/rake/application.rb:93:in `load_rakefile'
/home/edwinlunando/.rvm/gems/ruby-2.0.0-p247/gems/capistrano-3.0.0/lib/capistrano/application.rb:22:in `load_rakefile'
/home/edwinlunando/.rvm/gems/ruby-2.0.0-p247@global/gems/rake-10.1.0/lib/rake/application.rb:77:in `block in run'
/home/edwinlunando/.rvm/gems/ruby-2.0.0-p247@global/gems/rake-10.1.0/lib/rake/application.rb:165:in `standard_exception_handling'
/home/edwinlunando/.rvm/gems/ruby-2.0.0-p247@global/gems/rake-10.1.0/lib/rake/application.rb:75:in `run'
/home/edwinlunando/.rvm/gems/ruby-2.0.0-p247/gems/capistrano-3.0.0/lib/capistrano/application.rb:12:in `run'
/home/edwinlunando/.rvm/gems/ruby-2.0.0-p247/gems/capistrano-3.0.0/bin/cap:3:in `<top (required)>'
/home/edwinlunando/.rvm/gems/ruby-2.0.0-p247/bin/cap:23:in `load'
/home/edwinlunando/.rvm/gems/ruby-2.0.0-p247/bin/cap:23:in `<main>'
Do you call cap with bundle exec cap deploy
?
@edwinlunando if you are using Rails 4 with bundler, I think you should also add the bundler plugin.
BTW: you don't have to require both rails parts on it's own.
require 'capistrano/rails'
should be enough
@kirs Wow, That command is running smoothly. Why do I need to use bundle exec
? Thank you. :+1:
@Kriechi Alright, many thanks for the tip.. It running now :+1:
Why do I need to use bundle exec
http://stackoverflow.com/questions/6588674/what-does-bundle-exec-rake-mean
I am running
bundle exec cap deploy
with the latest version (3.1.0) and still getting
cap aborted! cannot load such file -- capistrano/rvm
where do you load capistrano/rvm
is the gem installed? have you added it to your Gemfile
?
Just had this message on me. Added gem 'capistrano-rvm'
to Gemfile and it works.
If you are using capistrano 3.1.0 just do
cap production deploy
without the bundle exec part
If you are using rvm gemsets, make sure to switch to gemset with capistrano/rvm
before deploy. In my case it was a reason of problem.
Hi, I want to use Capistrano 3.0.0.
This is my Capfile
When I run cap, it show errors like this