我在rvm中安装了我的ruby环境。我的应用程序位于目录/ srv / web上,并且我已经安装了gems unsing bunlder。在我的应用程序目录中,我可以查询捆绑程序以告诉我当前的环境是
$ bundle env
Bundler 1.17.3
Platforms ruby, x86_64-linux
Ruby 2.2.1p85 (2015-02-26 revision 49769) [x86_64-linux]
Full Path /usr/local/rvm/rubies/ruby-2.2.1/bin/ruby
Config Dir /usr/local/rvm/rubies/ruby-2.2.1/etc
RubyGems 2.7.8
Gem Home /usr/local/rvm/gems/ruby-2.2.1
Gem Path /usr/local/rvm/gems/ruby-2.2.1:/usr/local/rvm/gems/ruby-2.2.1@global
User Path /home/vagrant/.gem/ruby/2.2.0
Bin Dir /usr/local/rvm/gems/ruby-2.2.1/bin
Tools
Git 2.17.1
RVM 1.29.7-next (master)
rbenv not installed
chruby not installed
rubygems-bundler (1.4.5)
我想将我的gem安装在目录/usr/local/rvm/gems/ruby-2.2.1/gems
我尝试了不同的捆绑器安装路径。
如果我尝试
bundler install --path /usr/local/rvm
捆绑程序尝试安装到/usr/local/rvm/gems/ruby/2.2.0
如果我尝试使用bundler install --path /usr/local/rvm/gems/ruby-2.2.1/
,它将尝试安装到/usr/local/rvm/gems/ruby-2.2.1/ruby/2.2.0/gems
。
我有点迷茫,我不知道这个2.2.0版本的来源。任何对此的轻描淡写将不胜感激。