ca1989
Learning resources about deploying Phoenix (no fly.io, no Docker)
Hi all,
is there any up to date resource out there (blog, talk, video, book…) about deploying elixir applications using releases?
In particular, I am interested in Phoenix apps.
I am looking for something that does not use a manged solution.
I am looking for something that does not use Docker.
Thank you
Most Liked
D4no0
What kind of resources?
Run mix release, open the release folder and find the binary to start your application. The code, runtime and configurations are all packed with the release.
w0rd-driven
There’s Deployment Archives - StakNine but the latest is 2022. He produced a book at Phoenix Deployment Handbook. There’s also Deploying Elixir - Miguel Cobá with his companion at Deploying Elixir eBook. Both are great resources and I’ve seen some other tutorials for Digital Ocean or running Elixir processes with supervisord. There’s also a library that helps create the scripts for that like mix release but it’ll take me a while to find that in my sea of GitHub stars.
ca1989
What can I say, it worked the first time after just reading the official releases documentation (that you summarized nicely here).
I am quite impressed! This is great!
Thank you
marschro
My servers are all FreeBSD hosts. So I use FreeBSD jails.
I automate everything with gitlab pipelines.
So at the end, I make a merge request. Tag it with a version. Then the pipeline tests and builds the code with mix release, deploys it, creates a completely new jail with the release and fires its up.
All I have to do is, merge the request, tag it and done.
I will write something about it as soon as I have the time.







