on my home box the bundle install command does ask for password and installs the gems in
/var/lib/gems/1.8/gems/...
but in office they are installed in my ~/.bundler/cache/git or at least cached there and not installed in main filesystem
I cant figure out how to set the path they are installed. pls help!
You can specify where the gems are installed by using
bundle install --path [directory]
This is not normally necessary; you can usually just do 'bundle install' and you're good to go.
When you want to include the gems for deployment, you will want to use
bundle package
which will, by default, put your gems in ./vendor/cache. If you subsequently deploy the project and do
bundle install --deployment
Bundler will source the files from that directory and install them into ./vendor/bundle. More information is available by doing
bundle help install
Hope this is useful.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With