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 vendor/bundle directory it creates to version control and be done?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Have a look at the description of the two on Bundler’s site.
Running
bundle install --deploymentis to be run in the production environment, but will grab the gems from rubygems when run. Read more here under the ‘Deploying Your Application’ heading for the purpose of the--deploymentflag.bundle packageis similar to the oldrake rails:gems:freezecommand from Rails 2.3. It grabs the gems and packages them in vendor/cache. From the bundler site here: