Wrapping Up

In this chapter, we addressed deployment, the first step toward moving our development application into production. It was a long process with several steps.

First, we looked at an overly simplified approach to deployment with nothing but a few Mix tasks. We pushed that solution further to include a build server, and worked in some configuration. Then, we added run_erl to direct standard out to a file with rotating logs. Finally, we looked at heart, which provides heartbeat support. We soon learned that Mix couldn’t take us as far as we wanted to go.

Next, we formalized the production deployment process a bit. We introduced the concept of a release, a set of artifacts that run on a production server. We implemented a Distillery deployment ...

Get Adopting 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.