<!– Automatically generated by Pandoc –> ." Automatically generated by Pandoc 3.1.8 ." .TH “gemstash-mirror” “7” “October 25, 2015” “” “” .SH Using Gemstash as a Mirror If you dont have control over your f[CR]Gemfilef[R], or you dont want to force everyone on your team to go through the Gemstash server, you can use Bundler mirroring to bundle against your Gemstash server. .PP For each source in your f[CR]Gemfilef[R], add a mirror pointing to your Gemstash server: .IP .EX $ bundle config mirror.http://rubygems.org localhost:9292 $ bundle config mirror.https://my.gem-source.local localhost:9292/upstream/$(ruby -rcgi -e [aq]puts CGI.escape([dq]https://my.gem-source.local)[aq]) .EE .PP From now on, bundler will fetch gems from those sources via your Gemstash server. .SH Simpler Gemstash Mirrors f[B]This feature requires Bundler to be at least version f[CB]1.11.0f[B].f .PP If you are using Bundler version f[CR]1.11.0f[R] or greater, the mirroring becomes a bit easier: .IP .EX $ bundle config mirror.http://rubygems.org localhost:9292 $ bundle config mirror.https://my.gem-source.local localhost:9292 .EE .PP Bundler will then send headers to Gemstash to indicate the correct upstream.