rvm1-capistrano3 icon indicating copy to clipboard operation
rvm1-capistrano3 copied to clipboard

Installing rvm to system and setting rvm_path

Open iaankrynauw opened this issue 8 years ago • 2 comments

Hi, So I'm trying to use a system rvm install to allow my ci to be able to use rvm on its own.

I'm trying to use this: fetch(:default_env).merge!( rvm_path: "/opt/rvm" ), but I'm not sure where to put it and if it's actually working. I've tried it with 1.4.0 and master. 1.4.0 is just ignoring it where master complains it can't find rvm_path.

iaankrynauw avatar Feb 10 '17 08:02 iaankrynauw

Hi there,

I've had a similar problem, for which I made some investigation and found out what later came out to be this PR: https://github.com/rvm/rvm1-capistrano3/pull/76

You can set :default_env in your deploy.rb or in the stage-specific config, I believe.

magandrez avatar Mar 08 '17 08:03 magandrez

Hey thanks for the reply. fetch(:default_env).merge!( rvm_path: "/opt/rvm" ) isn't this doing the same thing?

I ended up using capistrano-bundler with rvm1-capistrano3. I could set rvm_path, bundle with more cores and only install production gems. Which skips spring and saves a lot of ram.

iaankrynauw avatar Mar 30 '17 12:03 iaankrynauw