Whats the difference between bundle install --deployment and bundle pack

后端 未结 3 611
日久生厌
日久生厌 2020-12-08 15:36

I know they both put the gems in your app in different locations but it seems as if bundle install --deployment does a more thorough job. Can I just add the

3条回答
  •  情话喂你
    2020-12-08 16:22

    I use bundle install --path vendor/bundle in development mode. bundle install --deployment will lock yor Gemfile.lock and will not update it when you change your Gemfile, so never use deployment option on development environment. bundle install --no-deployment will disable bundle deployment mode. You can read that post about bundle usage in right way.

提交回复
热议问题