Releasing with Distillery

So far, we have been running the application with mix or mix phx.server, and our code was being compiled on the fly before running. This way, only files changed after the last compilation are recompiled before running the application, contributing to a fast development experience.

If you're inside an IEx shell (that is, you started the application with iex -S mix), you can also call the recompile/0 function whenever you want to compile the changes you just made, instead of having to quit and start the application again. This only works if you're inside a Mix project.

The code we're running is perfectly capable of performing its duties in production, but we don't want to deploy it like this. If we copy the umbrella ...

Get Mastering Elixir now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.