Why doesn't the 'bundle install --without production' command not require '--without production' after update?

前端 未结 2 2157
栀梦
栀梦 2021-02-13 12:43

Why doesn\'t the second command of

$ bundle install

not need

--without production

(As this is how it went i

2条回答
  •  一生所求
    2021-02-13 13:26

    When you run your bundle command on your development machine, it won't install the gems for use in your production environment.

    See here: http://bundler.io/man/bundle-install.1.html

    NAME
    bundle-install - Install the dependencies specified in your Gemfile
    
    SYNOPSIS
    
    bundle install [--binstubs[=DIRECTORY]] [--clean] [--full-index] [--gemfile=GEMFILE] [--jobs=NUMBER] [--local] [--deployment] [--no-cache] [--no-prune] [--path PATH] [--system] [--quiet] [--retry=NUMBER] [--shebang] [--standalone[=GROUP[ GROUP...]]] [--trust-policy=POLICY] [--without=GROUP[ GROUP...]]
    

提交回复
热议问题