When creating a new Rails application, why is there a Gemfile.lock file without running bundle install? -
and, how system install gems application without going through bundle install process?
note: question process of creating new application. not same question in rails, why there new gemfile.lock when no bundle or bundle install run? (and new gemfile timestamp too) .
gemfile.lock snapshot of gems , versions created when run bundle install
. explained in checking code version control section of bundler rationale:
gemfile.lock makes application single package of both own code , third-party code ran last time know sure worked. specifying exact versions of third-party code depend on in gemfile not provide same guarantee, because gems declare range of versions dependencies.
gems can installed outside of bundler rubygems (e.g. gem install gem_name
) it's best use rvm allows install separate versions of ruby , manage individual gemsets each application explained in rvm best practices.
Comments
Post a Comment