Reputation: 10122
bundler supports grouping dependencies. given a a Gemfile like
# Gemfile
# global gems
gem "foo"
group :production do
# production gems
end
group :development do
# development gems
end
what is the best practice to install a specific group only without remembering the option? e.g. (only production
group)
Upvotes: 0
Views: 240
Reputation: 32456
bundle config set --local without foo development
This should update your .bundle/config
by appending BUNDLE_WITHOUT: "foo:development"
Then next bundler run should install only remaining groups, in this case production
only.
bundle install
Upvotes: 0