Skip to content
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

Incorrect PATH warning even though ruby version is specified #57

Open
emirkin opened this issue Oct 13, 2014 · 1 comment
Open

Incorrect PATH warning even though ruby version is specified #57

emirkin opened this issue Oct 13, 2014 · 1 comment

Comments

@emirkin
Copy link

emirkin commented Oct 13, 2014

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants