rvm icon indicating copy to clipboard operation
rvm copied to clipboard

rvm_map_bins should contain rails

Open ydkn opened this issue 10 years ago • 6 comments

The rails command should be included in the rvm_map_bins as it is in the capistrano-rbenv gem

ydkn avatar Sep 22 '14 21:09 ydkn

+1, IMO it makes sense for the rvm extension to match the rbenv one in this regard.

bendilley avatar Sep 23 '14 08:09 bendilley

Not sure about this. capistrano-rvm is trying to be framework agnostic. Should be include sinatra or padrino binaries as well?

kirs avatar Oct 06 '14 09:10 kirs

Good point. But if capistrano-rvm does not include rails then capistrano-rails has to add itself to rvm_map_bins. So, it's the same question: Should capistrano-rails be agnostic to Ruby version management tools?

In my opinion it is easier to add it to the capistrano-rvm instead to capistrano-rails.

Btw: sinatra has no binary.

ydkn avatar Dec 18 '14 22:12 ydkn

+1 on including rails in rvm_map_bins.

Not having it there can lead to failures when running remote cap tasks that are hard to figure out & can take a lot of time (e.g. you think "OMG it's something else I've messed up in how my VPS is setup ... let me go dig into what what env is in place when this remote task is run, what PATH's are set, etc, etc")

stevenchanin avatar Jan 05 '17 17:01 stevenchanin

Please merge this PR. I can confirm rails command should be included in an array map so that some capistrano plugins could work correctly.

dmitry avatar Jan 06 '17 11:01 dmitry

@stevenchanin Agreed - but is the real solution to have better errors? For me, this was just saying "no output" when it should have said "rails: command not found" which would have made this an easy fix.

smtlaissezfaire avatar Feb 26 '18 19:02 smtlaissezfaire