What does it mean BUNDLE_DISABLE_SHARED_GEMS: '1'?

Luca G. Soave picture Luca G. Soave · Nov 12, 2011 · Viewed 7.8k times · Source

I found BUNDLE_DISABLE_SHARED_GEMS: '1', in .bundle/config. What does it mean?

Answer

Michael Durrant picture Michael Durrant · Nov 12, 2011

Bundler takes some settings from the ~/.bundle/config file -- not from the shell env.

When set to true (default), the install of all gems will be to BUNDLE_PATH, regardless of whether those gems are installed in your system.

Bundler will not install gems already in system gems by default, so this is especially useful if you're trying to package up an application with all dependencies unpacked.