-
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
Using SSHKit prefixes to hook RVM #22
Conversation
@@ -63,11 +43,13 @@ namespace :rvm do | |||
end | |||
end | |||
|
|||
before 'deploy:starting', 'rbenv:hook' | |||
before 'deploy:starting', 'rbenv:check' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should probably be RVM - not rbenv?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My fault. Fixed
Bundler bin is not mapped any more. How do we address this issue - in combination with command map? I think it is not a good idea to specify an addition rvm-map-bin entry inside capistrano-bundler... |
Now it's done inside bundler: https://github.com/capistrano/bundler/pull/16/files#diff-91990b1845e3608397d87393341f0544R31 If you mean that someone is using
|
Hmm - I mean, if I try Yes, if someone wants to |
You're right, I've fixed it. |
@Kriechi it works for me on capistrano 3.1 from upstream, SSHKit 1.2.0 and capistrano-rvm from this branch. I would appreciate if you try it too 😉 |
|
||
Capistrano::DSL.stages.each do |stage| | ||
after stage, 'rvm:hook' | ||
after stage, 'rvm:check' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
with that in place, the section https://github.com/capistrano/rvm#custom-tasks-which-rely-on-rvmruby is not needed any more, or is it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed, thanks!
👍 It works! |
Awesome. Your tried the whole rails/bundler/rvm workflow, right? |
and
|
Using SSHKit prefixes to hook RVM
Here is the first implementation using SSHKit prefixes: capistrano/sshkit#45