Why Bundle Install is installing gems in vendor/bundle?

后端 未结 6 1846
我寻月下人不归
我寻月下人不归 2020-12-24 04:46

Whenever I do bundle install all of the gems get installed at

app_dir/vendor/bundle

path and consumes loads of disk space. I a

6条回答
  •  清酒与你
    2020-12-24 05:16

    1. Use bundle env to view paths and bundle configuration

    2. After this set bundle path to ~/.rvm/gems/ruby-2.0.0-p247 like this:

      bundle install --path ~/.rvm/gems/ruby-2.0.0-p247
      

      which is global and also you can use your own custom path.

    3. Post this bundle install will never need path again and will always install all of your gems in that directory(~/.rvm/gems/ruby-2.0.0-p247 in my case) for that app not in app_folder/vendor/bundle

提交回复
热议问题