jrdioko
jrdioko

Reputation: 33447

Best practice setup for maintaining gems in production

What is the recommended setup for a Rails application running in the production environment with regards to gem management? Bundler handles dependency resolution, installing, updating, etc. well, but still relies on the gem repository being up and running at any given time and any required gem not being pulled (removed) from the repository.

Is there any way to achieve more redundancy (a local mirror of the gem repository, maybe?) with production gem management, so everything can continue to function normally if RubyGems has downtime or a required gem is removed?

Upvotes: 1

Views: 344

Answers (1)

Mörre
Mörre

Reputation: 5723

How about the command "bundle package": Package the .gem files required by your application into the vendor/cache directory.

Upvotes: 3

Related Questions