4

有了 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 部署的完整记录:

https://gist.github.com/dt1973/7b99dfb75bd26e1e5ed7

4

1 回答 1

3

.ruby-version简单地说,2.2.0

echo 2.2.0 > .ruby-version
于 2015-02-04T09:24:04.240 回答