Bundler is package management tool for Rails.
Even if other env, we only keep Gemfile and bundler installs all softwares we need.
Bundler is gem file management.
It provides gem package install system for Rails Application.
By default, rails new command executes bundle install
When creating new application, some steps are executed.
- Create files we need
- Create Gemfile
- Install packages according to Gemfile
- Create Gemfile.lock
Bundle install by hand
Skip bundle install when creating application
rails new application --skip-bundle
Gemfile was created
If finishing success, Gemfile.lock file was created
If you want to separate library in gem, you can use group
group :development do gem 'sqlite3', '1.3.8' end
After update, you need to following commands
bundle install --without production budnle update bundle install
Gemfile.lock was generated