Setting Ruby Version in Capistrano 3
Rbenv, RVM, Chruby? Nope, you don't need it.
In your deploy.rb
do something like this:
set :ruby_version, '/usr/local/ruby200/bin'
set :default_env, -> {{ path: [fetch(:ruby_version), "#{release_path}/bin", "$PATH"].join(":") }}
That will setup your path so that you're using the desired ruby on deploy and setup of your app.
Simple.
Written by Craig McNamara
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Ruby
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#