You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using the rvm1-capistrano3 gem, since the capistrano-rvm gem doesn't work for me and seems to be no longer maintained (see capistrano/rvm#83).
As soon as I added install_plugin Capistrano::Puma line to my Capfile, capistrano could no longer invoke bundler correctly, since the rvm wrapper wasn't being used anymore.
Looking at the code both in rvm1-capistrano3 and here, both are accessing the rvm_bin_maps variable, which seems to be the main point of contention. However I'm not sure as to why, since rvm1-capistrano3 should be loading on demand, if I read the code correctly (https://github.com/rvm/rvm1-capistrano3/blob/master/lib/rvm1/tasks/capistrano3.rake#L41) and capistrano-puma just appends puma and pumactl to the variable. I suspect some order-of-execution issue.
The only thing I've got to actually work is adding set :rvm_map_bins, [ 'rake', 'gem', 'bundle', 'ruby', 'puma', 'pumactl' ] to my deploy.rb file. Not very clean, but Works For Me (TM).
Maybe you can add a pointer in the setup documentation for others having similar issues.
The text was updated successfully, but these errors were encountered:
I'm using the rvm1-capistrano3 gem, since the capistrano-rvm gem doesn't work for me and seems to be no longer maintained (see capistrano/rvm#83).
As soon as I added
install_plugin Capistrano::Puma
line to my Capfile, capistrano could no longer invoke bundler correctly, since the rvm wrapper wasn't being used anymore.Looking at the code both in rvm1-capistrano3 and here, both are accessing the rvm_bin_maps variable, which seems to be the main point of contention. However I'm not sure as to why, since rvm1-capistrano3 should be loading on demand, if I read the code correctly (https://github.com/rvm/rvm1-capistrano3/blob/master/lib/rvm1/tasks/capistrano3.rake#L41) and capistrano-puma just appends puma and pumactl to the variable. I suspect some order-of-execution issue.
The only thing I've got to actually work is adding
set :rvm_map_bins, [ 'rake', 'gem', 'bundle', 'ruby', 'puma', 'pumactl' ]
to my deploy.rb file. Not very clean, but Works For Me (TM).Maybe you can add a pointer in the setup documentation for others having similar issues.
The text was updated successfully, but these errors were encountered: