Search code examples
rubycapistranorvm

How do I configure capistrano to use my rvm version of Ruby


Does anybody know how I can tell capistrano to use my default rvm version of ruby for on the server I am pushing to. It insists on using the system version.

Is it even possible?


Solution

  • The rvm-capistrano gem is the best way to go.

    Link to the official detailed usage of that gem. From that I am guessing this will get the local version of Ruby:

    set :rvm_ruby_string, ENV['GEM_HOME'].gsub(/.*\//,"") # Read from local system