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
Post a Comment