capistrano / rvm

MIT License
140 stars 47 forks source link

Incorrect PATH warning even though ruby version is specified #57

Open emirkin opened 9 years ago

emirkin commented 9 years ago

I get this error when my capistrano (capistrano-rvm (0.1.1)) script runs rvm commands:

   Warning! PATH is not properly set up, '/usr/local/rvm/gems/ruby-2.1.0/bin' is not at first place,
         usually this is caused by shell initialization files - check them for 'PATH=...' entries,
         it might also help to re-add RVM to your dotfiles: 'rvm get stable --auto-dotfiles',
         to fix temporarily in this shell session run: 'rvm use ruby-2.1.0'.

At the same time, I have set :rvm_ruby_version, '2.1.0' in my deploy.rb.

It appears that capistrano-rvm does not choose ruby properly. If I execute rvm commands manually, I get this warning too. However, it goes away if I execute rvm use 2.1.0 first.

pmontrasio commented 9 years ago

Same problem here. I had to set the gemset as in :rvm_ruby_version, '2.2.0@mygemset'. That made the error go away.