Skip to content

Instantly share code, notes, and snippets.

@mbriggs
Created September 29, 2020 22:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mbriggs/a079c3162b946100cb9b3310e4db0d2f to your computer and use it in GitHub Desktop.
Save mbriggs/a079c3162b946100cb9b3310e4db0d2f to your computer and use it in GitHub Desktop.
set up local gemstash in linux
[Unit]
Description=Local Gem Cache
After=network.target
[Service]
Type=simple
WorkingDirectory=/home/mbriggs
ExecStart=/home/mbriggs/.gem/ruby/bin/gemstash start --no-daemonize
[Install]
WantedBy=default.target
gem install gemstash
systemctl enable --user $HOME/dotfiles/gemstash.service
systemctl --user daemon-reload
systemctl start --user gemstash.service
bundle config mirror.https://rubygems.org http://localhost:9292
bundle config mirror.https://rubygems.org.fallback_timeout true
sudo loginctl enable-linger mbriggs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment