-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wrong variable name - rvm_custom_path #21
Comments
Exactly. Could you make a PR, please? |
I think this functionality is implemented in the init task. |
Yes, I think there is a bug somewhere. I had this config: set :rvm_type, :user
set :rvm_ruby_version, '2.0.0' and task: task :update_crontab do
on roles(:app) do
within current_path do
execute :bundle, "exec whenever -i cr"
end
end
end Running the task:
It doesn't detect user rvm here.
rvm_path works fine:
Probably the source of this is user rvm detection failure. |
ok, it seems culprit is here: namespace :deploy do
after :starting, 'rvm:hook'
end I don't do deploy, just run a specific task:
|
yes - as stated in the README you have to hook your custom tasks. |
@kirs maybe we should do This would ensure that rvm is hooked prior running one of the binaries (bundler, gem, ruby, rake). |
Any update this? |
This issue is supposed to be fixed in master now! |
It seems variable name should be rvm_path not rvm_custom_path:
set :rvm_custom_path, '~/.myveryownrvm'
See https://github.com/capistrano/rvm/blob/master/lib/capistrano/tasks/rvm.rake#L10
custom_path doesn't works for me, rvm_path do:
The text was updated successfully, but these errors were encountered: