Skip to content

djnym/hexen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Hex.pm mirroring escript

This project provides an escript which does the following

  1. copy all packages from hex.pm to a local directory
  2. run a webserver which can be used as a HEX_MIRROR/HEX_CDN
  3. continue to sync packages from hex.pm as long as it is running

Building

% rebar3 escriptize
% sudo cp _build/default/bin/hexen /usr/bin

Running

% mkdir hex.pm
% cd hex.pm
% hexen

The escript will start a web server on port 31337, so you can then use

% HEX_CDN=http://127.0.0.1:31337/ rebar3

or

% HEX_MIRROR=http://127.0.0.1:31337/ mix

to pull packages from the local hex mirror.

To stop the server, just control-C.

About

Hex.pm mirroring escript

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages