gemstash-mirror(7)
π Using Gemstash as a Mirror
okay so welcome to gemstash-mirror(7), bestie πͺπ this page is literally about using Gemstash as a mirror, and the vibe check is: 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. periodt β¨
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 Gemstash server. slay π«Άπ₯
β¨ Simpler Gemstash Mirrors
this feature requires Bundler to be at least version 1.11.0, no cap π
if you are using Bundler version 1.11.0 or greater, the mirroring becomes 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 upstream. iconic behavior tbh ππ
cute little sign-off: this was gemstash-mirror(7), dated October 25, 2015 π bye bestie π
π¦ where this page comes from
- nixpkgs unstable: gemstash 2.8.2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms