Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to un-extract and re-extract Capistrano to the right place

I'm getting this error when trying to do : bundle exec cap deploy

"RVM - Capistrano integration was extracted to a separate gem, \
install: `gem install rvm-capistrano` and remove the `$LOAD_PATH.unshift` line, \
note also the 'set :rvm_type, :user' is now the default (instead of :system)."

Unfortunately, none of those tips actually work.

The problem stems from when I had to revert my copy of RVM to an older copy to have it comply with POW. After I did this, this feature no longer worked. Which sort of makes sense.

So my question is simply, how do I re-engineer my Capistrano exactraction to not a seperate gem.

I tried uninstalling, everything, reinstalling everything, but that didn't seem to work.

Any ideas?

like image 866
Trip Avatar asked Apr 25 '12 12:04

Trip


1 Answers

I had the same problem as you. In my deploy.rb file, I had to comment out this line:

$:.unshift(File.expand_path('./lib', ENV['rvm_path'])) # Add RVM's lib directory to the load path.

i.e.

# $:.unshift(File.expand_path('./lib', ENV['rvm_path'])) # Add RVM's lib directory to the load path.
like image 159
ajitdsa Avatar answered Oct 04 '22 21:10

ajitdsa