Created
February 16, 2017 05:51
-
-
Save jackjennings/dd1d8c417e22e772a2522b37eabef08d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace :rvm do | |
task :trust_ruby_env do | |
on roles(:web) do | |
within release_path do | |
execute "#{fetch(:rvm_path)}/bin/rvm", "rvmrc trust #{release_path}/.ruby-env" | |
end | |
end | |
end | |
end | |
before "deploy:migrate", "rvm:trust_ruby_env" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment