4mgemstash-mirror24m(7) 4mgemstash-mirror24m(7)
<!– Automatically generated by Pandoc –>
1mUsing Gemstash
as a Mirror0m
If you don't have control over your Gemfile, or you don't want to force everyone on your team to go through the Gemstash server, you can use Bundler mirroring to bundle against your Gemstash server. For each source in your Gemfile, add a mirror pointing to your Gemstash server: $ bundle config mirror.http://rubygems.org http://localhost:9292 $ bundle config mirror.https://my.gem-source.local http://localhost:9292/upstream/$(ruby -rcgi -e 'puts CGI.escape("https://my.gem-source.local")') From now on, bundler will fetch gems from those sources via your Gem- stash server.
1mSimpler Gemstash
Mirrors0m
1mThis feature requires Bundler to be at least version 1.11.0.0m If you are using Bundler version 1.11.0 or greater, the mirroring be- comes a bit easier: $ bundle config mirror.http://rubygems.org http://localhost:9292 $ bundle config mirror.https://my.gem-source.local http://localhost:9292 Bundler will then send headers to Gemstash to indicate the correct up- stream. October 25, 2015 4mgemstash-mirror24m(7)