capistrano / rvm

MIT License
140 stars 47 forks source link

Default 'rvm_map_bins' does not contain 'rails' #81

Closed awrush closed 7 years ago

awrush commented 7 years ago

Is there a specific reason why the rails command is not included in the default rvm_map_bins variable?

With rails 5, calling "execute :rails, ..." in custom tasks does not seem to create the necessary prefix "~/.rvm/bin/rvm default do" for the remote commands which, in my case, leads to errors like this:

00:16 deploy:fill_services_table
      01 bundle exec rails bootstrap:populate_services
      01 bash: bundle: command not found
(Backtrace restricted to imported tasks)
cap aborted!
SSHKit::Runner::ExecuteError: Exception while executing as USER@HOST: rails exit status: 127
rails stdout: Nothing written
rails stderr: bash: bundle: command not found

If you like, I could create a PR with the (trivial) change so that the 'rails' command is part of the default rvm_map_bins array.

awrush commented 7 years ago

Please forgive my ignorance. I should have checked the existing PRs. This issue has already been mentioned.