Gemfile :
Gemfile
# default group: gem 'json' group 'development' do gem 'my_profiler' end group 'test' do gem 'mocha' end group 'deployment' do gem 'foo' end
我打电话来 Bundler.setup(:default, RAILS_ENV.to_sym) Bundler.require(:default, RAILS_ENV.to_sym) 在我的初始值设定中。
Bundler.setup(:default, RAILS_ENV.to_sym)
Bundler.require(:default, RAILS_ENV.to_sym)
vendor/bundle/ ,Rails初始化 全部的 宝石有一个 init.rb 初始化.rb ?
vendor/bundle/
init.rb
初始化.rb
您使用什么版本的bundler?最近的不应该安装在供应商
可以使用--without标志排除环境
$ bundle install --without development test
http://gembundler.com/groups.html