I've been working with Rails 3 for some time now and never came across an answer for the difference between running bundle
and bundle install
to install gems in your Gemfile
.
Is there any difference between the two commands?
The commands bundle & bundle install also have the same functionality. bundle uses Thor, and bundle 's default task is install .
The most common question I've heard about Bundler is about the difference between bundle install and bundle update . In a nutshell: bundle install handles changes to the Gemfile and bundle update upgrades gems that are already managed by Bundler.
Bundler makes sure that Ruby applications always use the exact gems and versions that you need while keeping a consistent environment and gem dependencies satisfied. This is done by ensuring that the gems you need are present in the development, staging, and production stages.
bundle install is a command we use to install the dependencies specified in your Gemfile.
No. install
is just the default option for the bundle
command. Don't run either in your Gemfile, however, just specify the gem "fubar"
there -- bundler knows how to read and process that file.
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