新手问题 对为什么 bundle install 要加上 without production 有一点疑问

hanyangwang · March 17, 2015 · Last by hanyangwang replied at March 17, 2015 · 2378 hits

再看 Ruby on Rails 教程,里面每次使用 bundle install 的时候都要加上 -- without production. 不知道我是否可以这样理解这句话:就是加了 without production 之后,group :production do 里的 Gem 都不会再自己的机器上安装,只会在 Heroku 这样的生产环境中安装。Gemfiles 里面每一个 Group 就代表安装的一个条件,这么理解对吗?但 RoR 是怎么判断那个是生产环境的呢?

You need to Sign in before reply, if you don't have an account, please Sign up first.