What does bundle install --without production do?

前端 未结 2 1153
旧时难觅i
旧时难觅i 2021-02-15 15:00

Ive seen people using this and used it myself as told to do so. I just dont have a real grasp as what it actually does. I understand fully the bundle install part,

2条回答
  •  情话喂你
    2021-02-15 15:54

    As you seen some people using following command(Which you said in your question):

    bundle install --without production
    

    --without production is a special flag which we are using.

    For more explanation I am taking following example:

    group :production do
      gem 'pg', '0.12.2'
    end
    

    Now, If I use following command:

    bundle install --without production
    

    In above command, the --without production option prevents the local installation of any production gem means whatever gems are in the production group will not be installed -- which in our example is just one gem: pg.

提交回复
热议问题