Reputation: 731
On my production machine
rbenv versions
system
* 2.2.2 (set by /Users/smi/.rbenv/version)
which unicorn
/Users/smi/.rbenv/shims/unicorn
ruby -v
ruby 2.2.2p95 (2015-04-13 revision 50295) [x86_64-darwin12.0]
On my server (I can not understand why unicorn gets ruby version 2.2.0 after a deploy and where from, because is not installed on any of my machines):
rbenv versions
* 2.2.2 (set by /home/deployuser/.rbenv/version)
bundle exec which unicorn
/var/www/foreignernetwork/shared/bundle/ruby/2.2.0/bin/unicorn
.rbenv/version
2.2.2
Upvotes: 1
Views: 530
Reputation: 24337
It is not getting a different version of Ruby. You're running 2.2.2, but Bundler just uses a 2.2.0 directory for storing the bundled gems, bins, etc.
Upvotes: 2