July 2018
Intermediate to advanced
574 pages
14h 7m
English
To build the release, we need to simply run the release Mix task with mix release. Since in our rel/config.exs file we set default_environment: Mix.env(), the release default environment is given by the MIX_ENV environment variable.
In the following snippet, we are building the release. We're setting the elixir_drip umbrella app version in its mix.exs file as 0.0.8, so the release becomes elixir_drip:0.0.8 (elixir_drip is the release name and 0.0.8 results from setting the release version as current_version(:elixir_drip) in the rel/config.exs file):
$ MIX_ENV=prod mix release==> elixir_drip # ...Generated elixir_drip app==> elixir_drip_webCompiling 12 files (.ex)Generated elixir_drip_web app==> Assembling release..==> ...
Read now
Unlock full access