Alternative Deployment Strategies

There are other ways to deploy as well! You can build a docker image for your application and then deploy that image to an environment that can run containers, for example. This is a great deployment method for being able to reliably deploy your environment, but it carries a number of other gotchas associated with it, such as having to deal with having docker running on your target environment which may not be an option. It can also be tricker to allow multiple separate Phoenix instances to communicate with each other.

You can also deploy BEAM binaries using tools like the fantastic Distillery. Distillery is centered around creating release files that can include the entire Erlang runtime and all dependencies, ...

Get Phoenix Web Development 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.