0Pricing
Elixir & Phoenix: Scalable Backend Development · Lesson

Building Releases with Mix Release

Create self-contained and ready-to-deploy releases of your Elixir application using `mix release`.

Welcome to Elixir Releases

When you develop an Elixir application, you often run it with mix run --no-halt. This is great for development, but not ideal for production.

For deployment, we need a self-contained package that can run independently, without needing the Mix build tool or even Elixir's source code on the target machine. This is where releases come in!

Why `mix run` Isn't Enough

Running an application with mix run has a few drawbacks for production:

  • It requires the full Mix build tool and your project's source code.
  • It uses the development environment configuration by default.
  • Startup can be slower as it needs to compile and load dependencies.
  • It lacks proper daemonization features for background processes.

All lessons in this course

  1. Building Releases with Mix Release
  2. Containerization with Docker
  3. Cloud Deployment Strategies
  4. Zero-Downtime Deploys and Hot Upgrades
← Back to Elixir & Phoenix: Scalable Backend Development