Capistrano 3 deploys a wrong ruby version -


on production machine

rbenv versions system * 2.2.2 (set /users/smi/.rbenv/version)  unicorn /users/smi/.rbenv/shims/unicorn  ruby -v ruby 2.2.2p95 (2015-04-13 revision 50295) [x86_64-darwin12.0] 

on server (i can not understand why unicorn gets ruby version 2.2.0 after deploy , from, because not installed on of machines):

rbenv versions * 2.2.2 (set /home/deployuser/.rbenv/version)  bundle exec unicorn /var/www/foreignernetwork/shared/bundle/ruby/2.2.0/bin/unicorn 

.rbenv/version

2.2.2 

it not getting different version of ruby. you're running 2.2.2, bundler uses 2.2.0 directory storing bundled gems, bins, etc.


Comments

Popular posts from this blog

Email notification in google apps script -

c++ - Difference between pre and post decrement in recursive function argument -

javascript - IE11 incompatibility with jQuery's 'readonly'? -