Elixir Precompiled Deployer

Deploy precompiled binaries using Elixir scripts.

Coverage Status

Runs precompiled_deploy.exs in corresponding project. For most if not all cases, precompiled_deploy.exs is expected to download precompiled artifacts and put them into the priv directory. This is to:

Another reason to use this project is that writing deploy code in mix.exs that copies precompiled binaries to the priv directory does not work. Copied directories and files will be removed.

Configuration

This compiler can be configured through the return value of the project/0 function in mix.exs; for example:

def project() do
    [
        # ...
        compilers: [:elixir_precompiled_deployer] ++ Mix.compilers,
        # ...
    ]
end

defp deps do
  [
    # ...
    {:elixir_precompiled_deployer, "~> 0.1.0", runtime: false},
    # ...
  ]
end

The following options are available:

Installation

If available in Hex, the package can be installed by adding elixir_precompiled_deployer to your list of dependencies in mix.exs:

def deps do
  [
    {:elixir_precompiled_deployer, "~> 0.1.0", runtime: false}
  ]
end

Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/elixir_precompiled_deployer.