mrkurt
How do you package your Phoenix application for deployment?
Hello! I run a cloud company, we want to build the best possible Phoenix deployment experience. The goal is a CLI based launch command that takes a Phoenix app directory, sets the right configuration secrets on our service (SECRET_KEY_BASE and DATABASE_URL, so far) and then builds + deploys the app as quickly as possible.
For Ruby and Rails, we just use the default Heroku builder. It works very well.
The available Phoenix buildpacks are very slow and incredibly brittle. We can’t really use those, we need a better option.
How do you all package your apps for deployment today? Specifically:
- Do you use mix release?
- Do you have a Dockerfile?
- Do you run a CI system, and which one?
Thank you for the help!
Trending in Discussions
As the title says, please share what you’ve been up to with Elixir. Whether that’s been learning it, looking into it, making stuff with i...
New
@chrismccord : I just saw the Extract AGENTS.md from Phoenix.new into phx.new generator commit to the phoenix project.
My initial shotgu...
New
I was working on an Ecto migration and I needed a timestamp. So, for the nth time, I looked up the different data types for timestamps, a...
New
Just a general thread to post chat/news/info relating to AI/ML stuff that may be relevant for Nx now or in the future. Got anything to sh...
New
I just stumbled on a newly redesigned elixir-lang.org. :tada: It looks like @Software_Mansion did the work, and I think it is generally a...
New
There has been a thread to discuss the Stack Overflow Developer Survey on this forum every year since 2018, so here’s yet another one for...
New
Fly’s CEO posted this recently - Turn And Face The Strange · The Fly Blog
It says that Fly is going all-in on sprites, which is a worry ...
New
Other Trending Topics
Hey, I’m Jesse and I’m the main contributor behind Dexter, a full-featured, lightning-fast Elixir LSP optimized for large codebases. It s...
New
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
Hello everyone. After busy few months I am happy to announce v0.1.0 of Emerge & Solve.
They are GUI (Emerge) and State management (S...
New
Emily is an Elixir library that runs Nx computations on Apple’s MLX. Install it as the default Nx backend and Nx, defn, Axon, Nx.Serving,...
New
@hugobarauna and I (Alex Koutmos) have been hard at work on writing a book on Nerves that takes you from simply blinking LEDs to building...
New
There are three potential reasons for members of this forum to have a look at https://vutuv.de
You are tired or annoyed of LinkedIn.
Yo...
New
Latest Phoenix Threads
Chat & Discussions>Discussions
Latest on Elixir Forum
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #elixirconf-us
- #websockets
- #supervisor
- #advent-of-code
- #distillery
- #processes
- #api
- #forms
- #metaprogramming
- #hex
- #performance










First 10 of 22 Posts
pmangalakader
How do you all package your apps for deployment today? Specifically:
Yes, mix release is the inbuilt and easier way to distribute elixir applications. I have used distillery and edeliver also for deployments. There are multiple Elixir PAAS vendors for elixir deployments to try if you want to.
Yes, Dockerfile based containerization is easier to be embedded into development or deployment.
I have used Pipelines, Github Actions, AWS or GCP based Pipelines and also Gitlab runner.
To answer briefly, it’s a mixture of all the three for most of the deployments, based on the Client’s convenience factors and productivity factors.
amnu3387
lud
I use this Gitlab CI
And this Dockerfile
(Those are old versions I have on this computer).
I have a JavaScript build too but currently I just commit the build result. I should add a node docker image for that too.
I should also add a
mix testrun too.crova
1- Mix release
2- Nope
3- Only started using Sasa’s ci/cd library recently but nothing else.
mrkurt
When you use
mix releasebut don’t package it with Docker, are you bundling everything up into a zip/tarball and deploying that? Or some other package format?crova
Not really, I just rsync everything.
But that only works because I don’t have to worry about the OS on the host.
I reckon the most common solution is indeed a docker container, maybe others will mention a different package format but I’m not aware of a spread solution other than docker.
mrkurt
We actually want to support something rsync-y too. I’m very interested in creating a hot code reload process.
Once we have the first deploy for a given app done, it should be pretty straightforward to just push the release files.
crova
On the subject of hot code reload, there might be useful information for you on the erlang docs.
Any type of support for something rsync-y sounds like a good idea to me.
derek-zhou
I run releases in production but
git pullin the prod machine andmix releaseright there. my dev machine and prod machine are not exactly the same so I don’t want to mess with system libraries.axelson
I usually use GitHub - HashNuke/heroku-buildpack-elixir: Heroku Buildpack for Elixir with nitro boost · GitHub to deploy via Heroku
Not typically.
Nope, I try to avoid docker as much as possible.
I typically use CircleCI or GitHub Actions (although GitHub actions has only been on side projects)