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

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

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -