有了 chruby,为什么不ruby-2.2.0
工作.ruby-version
,而工作chruby ruby-2.2.0
呢?
% whoami
mark
% sudo su myapp
% cd /home/www/myapp/
% whoami
chruby: unknown Ruby: ruby-2.2.0
myapp
% cat .ruby-version
ruby-2.2.0
% which ruby
/usr/local/bin/ruby
% chruby ruby-2.2.0
% which ruby
/home/www/myapp/.rubies/ruby-2.2.0/bin/ruby
Ruby on Rails 部署的完整记录: