Created
September 29, 2020 22:16
-
-
Save mbriggs/a079c3162b946100cb9b3310e4db0d2f to your computer and use it in GitHub Desktop.
set up local gemstash in linux
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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