I understand what Rail's bundle package
does and how to use it, but I'm drawing a blank as to why it would be a useful command. What utility does it have?
Bundle pricing is a strategy where companies combine complementary products / services together and offer them at a single (often reduced) price. These bundles have a greater perceived value to customers and bring many benefits to the company such as increased average revenue per user (ARPU) and user engagement.
Bundle pricing can benefit a company because it can display more value for the products overall. Bundle pricing focuses on the idea of consumer surplus and the notion that customers typically have a predetermined price that they're willing to pay for an item.
Product bundles are several individual goods or services that are sold to consumers as one combined package. Sometimes called "package deals," product bundles are generally made up of complementary items or, less frequently, similar items.
The most common goal of product bundling is to generate more sales by enticing customers into buying more items. Sometimes companies create product bundles with products they want to clear out of stock or get rid of.
bundle package
will copy all the gems required by your application into the vendor/cache folder. This also includes dependencies required by the gems.
This helps because at the time of deployment you can just run bundle install --local
to avoid dependency on the gems repository (rubygems.org) and install all the gems from the cached folder
Because each gem might have different dependencies depending upon the platform in which it is installed, it's recommended to use bundle package
only when your development and deployment environments are alike.
You would use it when you have a need to not connect to the gem source, its useful if your moving files across machines and don't want to fetch gems from a remote source all the time. See the documentation here.
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