`

Package up all your .gem files in vendor/cache

 
阅读更多

gem 'my_private_gem', :path => "vendor/gems/my_private_gem-VERSION"


gem list | awk '{print $1}' | xargs gem unpack --target vendor/gems



bundle install --deployment. This will install the gems, in their unpacked state, in vendor/bundle.


Package up all your .gem files in vendor/cache

$ bundle package


Running bundle install in an application with packaged gems will use the gems in the package and skip connecting to rubygems.org

$ bundle install --local


You can use this to avoid a dependency on rubygems.org at deploy time, or if you have private gems that are not in a public repository
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics