View Source mix compile.elixir_precompiled_deployer (elixir_precompiled_deployer v0.1.0)
Deploy recompiled binaries with Elixir script.
Runs precompiled_deploy.exs in the current project.
configuration
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", runtime: false},
# ...
]
endThe following options are available:
:precompiled_deploy_script- Path to theprecompiled_deploy.exsscript.
compilation-artifacts-and-working-with-priv-directories
Compilation artifacts and working with priv directories
For most if not all cases, this deployer expects to download precompiled
artifacts and put them into the priv directory. This is to:
- avoid compiling non-elixir/erlang code with an external compiler
- save the time from compiling large external projects
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.
Link to this section Summary
Link to this section Functions
Runs precompiled_deploy.exs in the current project.