capistrano / capistrano/rvm

Incorrect PATH warning even though ruby version is specified

Open
#57 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Ruby
Stars
140
Forks
44
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.