Ruby on rails 3 bundler install RAILS\u ENV=test是否再次安装所有gem?

Ruby on rails 3 bundler install RAILS\u ENV=test是否再次安装所有gem?,ruby-on-rails-3,testing,bundler,Ruby On Rails 3,Testing,Bundler,我试图只安装我的测试gems,突然bundler再次尝试安装所有gems。为什么会这样?它不应该和我的开发人员看同一个gemset吗 bundle install RAILS_ENV=test Fetching git://github.com/odorcicd/authlogic.git remote: Counting objects: 3652, done. remote: Compressing objects: 100% (1337/1337), done. remote: Total

我试图只安装我的测试gems,突然bundler再次尝试安装所有gems。为什么会这样?它不应该和我的开发人员看同一个gemset吗

bundle install RAILS_ENV=test
Fetching git://github.com/odorcicd/authlogic.git
remote: Counting objects: 3652, done.
remote: Compressing objects: 100% (1337/1337), done.
remote: Total 3652 (delta 2389), reused 3331 (delta 2193)
Receiving objects: 100% (3652/3652), 574.45 KiB | 15 KiB/s, done.
Resolving deltas: 100% (2389/2389), done.
Fetching git://github.com/stalcottsmith/rails3_acts_as_paranoid.git
remote: Counting objects: 250, done.
remote: Compressing objects: 100% (202/202), done.
remote: Total 250 (delta 131), reused 93 (delta 44)
Receiving objects: 100% (250/250), 45.66 KiB | 30 KiB/s, done.
Resolving deltas: 100% (131/131), done.
Fetching git://github.com/stalcottsmith/watir.git
remote: Counting objects: 15547, done.
remote: Compressing objects: 100% (5377/5377), done.
remote: Total 15547 (delta 10218), reused 14217 (delta 9908)
Receiving objects: 100% (15547/15547), 8.64 MiB | 18 KiB/s, done.
Resolving deltas: 100% (10218/10218), done.
Fetching source index for http://rubygems.org/
Fetching source index for http://gemcutter.org/
Installing rake (0.8.7) 
Installing abstract (1.0.0) 
Installing activesupport (3.0.3) 
Installing builder (2.1.2) 
Installing i18n (0.5.0) 
Installing activemodel (3.0.3) 
Installing erubis (2.6.6) 
Installing rack (1.2.1) 
Installing rack-mount (0.6.13) 
Installing rack-test (0.5.7) 
Installing tzinfo (0.3.24) 
Installing actionpack (3.0.3) 
Installing mime-types (1.16) 
Installing polyglot (0.3.1) 
Installing treetop (1.4.9) 
Installing mail (2.2.14) 
Installing actionmailer (3.0.3) 
Installing arel (2.0.7) 
Installing activerecord (3.0.3) 
Installing activeresource (3.0.3) 
Installing acts_as_versioned (0.6.0) 
Installing andand (1.3.1) 
Installing annotate (2.4.0) 
Installing hoe (2.8.0) 
Installing ar_fixtures (0.0.4) 
Installing archive-tar-minitar (0.5.2) 
Using authlogic (2.1.3) from git://github.com/odorcicd/authlogic.git (at rails3) 
Using bundler (1.0.7) 
Installing celerity (0.8.7) 
Installing culerity (0.2.14) 
Installing nokogiri (1.4.4) with native extensions 
特罗洛尔

显然,
bundler安装
会将您的所有gems安装到该文件夹中。当我查看git状态时,看到一个名为“RAILS_ENV=test/”的未提交文件夹时,我才发现

作为补充说明,它“记住”了旧路径,因此任何后续的包都会再次安装RAILS\u ENV=test/folder。要重置它,请使用:

bundler install --system

您要查找的命令是

bundle install --system

在Bundler 1.0.10版上测试

实际上想安装测试环境gemrofl我刚才也这么做了,没有注意。我记得当bundler第一次出现时,我读过关于这个“特性”的文章,现在我爱上了它。