Skip to content
This repository has been archived by the owner on Aug 2, 2019. It is now read-only.
/ hex_mirror Public archive

Local simple tool to mirror hex.pm packages

License

Notifications You must be signed in to change notification settings

aussiegeek/hex_mirror

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HexMirror

This is a small simple service to mirror hex.pm to the local disk.

This was written for elixir.camp, where there is no internet connection, and so needs to be able to work completely offline.

Instructions

  1. Download it, setup deps and run
git clone [email protected]:aussiegeek/hex_mirror.git
npm install
mix deps.get
npm install
mix phoenix.server
  1. Wait. By default it will start mirroring automatically and save to ./tarballs. As of July 2016, this will fetch ~700MB of data.

  2. People that want to use your mirror will need to do this (assuming your local address is 'thingy.local'):

mix hex.config mirror_url http://thing.local

If you've finished using this mirror, you will want unset mirror_url:

mix hex.config mirror_url

TODO

  • Mirror hex installer
  • Configuration instructions

About

Local simple tool to mirror hex.pm packages

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published