And, how does the system install all the gems for the application without going through the bundle install process?
Note: This question is about the process of creating a new application. Not the same question as In Rails, why there is a new Gemfile.lock when no bundle or bundle install was run? (and a new Gemfile timestamp too) .
Gemfile.lock is a snapshot of the gems and their versions created when you run
bundle install. As explained in the Checking Your Code into Version Control section of the Bundler rationale:Gems can be installed outside of bundler by RubyGems (e.g.
gem install gem_name) but it’s best to use RVM which allows you to install separate versions of Ruby and manage individual gemsets for each application as explained in the RVM best practices.