July 2018
Intermediate to advanced
574 pages
14h 7m
English
When we create a release with Distillery, our Elixir application is converted into an Erlang/OTP release, indistinguishable from any other Erlang application bundle. There's no Mix project, ideally no Elixir source code either, only files with BEAM bytecode and the specific release files needed to start the release.
However, this frugality poses a problem: given we don't have Mix, it's impossible to run the database migrations using the ecto.migrate Mix task with the release. And we are determined to not send the whole Elixir project to production, so we need to find a way without depending on Mix tasks.
To overcome this, we will implement a custom release task that delegates the migration execution to the ...
Read now
Unlock full access