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 a开发者_StackOverflow中文版ny 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?
How about the command "bundle package": Package the .gem files required by your application into the vendor/cache directory.
精彩评论