开发者

How do I run capistrano with rinari in a system with rvm?

开发者 https://www.devze.com 2023-02-27 03:48 出处:网络
This happens when I try to run rinari-cap: 开发者_运维知识库~/.rvm/rubies/ruby-1.8.7-p330/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29:in `gem_original_require\': no such file to load -- rvm/

This happens when I try to run rinari-cap:

开发者_运维知识库

~/.rvm/rubies/ruby-1.8.7-p330/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29:in `gem_original_require': no such file to load -- rvm/capistrano (LoadError)

Something similar happens in eshell

I already installed the rvm.el file with no luck either.


Add the rvm gem to the gemfile, and on the first line of deploy.rb:

ENV['rvm_path']||="~/.rvm"


Adding the following line at the top of deploy.rb solved my issue:

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

精彩评论

暂无评论...
验证码 换一张
取 消