Skip to content

Instantly share code, notes, and snippets.

@mbriggs
Created September 29, 2020 22:16

Revisions

  1. mbriggs created this gist Sep 29, 2020.
    11 changes: 11 additions & 0 deletions gemstash.service
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    [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
    7 changes: 7 additions & 0 deletions setup.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    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