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.
- Download it, setup deps and run
git clone [email protected]:aussiegeek/hex_mirror.git
npm install
mix deps.get
npm install
mix phoenix.server
-
Wait. By default it will start mirroring automatically and save to
./tarballs
. As of July 2016, this will fetch ~700MB of data. -
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
- Mirror hex installer
- Configuration instructions