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
Trending in Chat/Questions
Hey folks, I’ve been using Elixir for over a couple of years (phx, ecto, broadway, oban).
For this kind of work you do not tend, in my e...
New
Hi, I’m Dheeraj Sudan from the UK. I’m a software developer and also run a business with my wife Meenu Hinduja. I’m interested in getting...
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
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
@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
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
- #websockets
- #elixirconf-us
- #supervisor
- #advent-of-code
- #distillery
- #processes
- #api
- #forms
- #metaprogramming
- #security
- #hex










First 10 of 21 Posts!
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.
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
LostKobrakai
Usually docker is used because that’s the simplest way to make sure the architecture between an external build machine and machines used to run the release are the same. If you can have the build machine match without using docker that works just as much.
ca1989
I am building the release on the target directly (I use Ansible to automate).
It worked the first time with just a couple of env variables, that’s really amazing.
LostKobrakai
Yeah that works. Not a common solution though as you need build tooling on that server and you also have the load of doing the build there. Both things people tend to avoid in production.
ca1989
Yeah yeah, that’s fair and stated in the docs
Just wanted to start from the basics and climb to state of the art.
T0ha666
This is my article about deploying to Ubuntu <= 20.04 LTS
sanswork
What is the best way to deploy a Phoenix application to EC2 or Digital Ocean? - #5 by sanswork is how I used to do it though I use fly these days.
w0rd-driven
There’s https://staknine.com/deployment/ but the latest is 2022. He produced a book at Phoenix Deployment Handbook. There’s also Deploying Elixir 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 releasebut it’ll take me a while to find that in my sea of GitHub stars.ragamuf
Hi Carlo. Ansible is the way I went in combination with droplets on Digital Ocean. I found some excellent articles on the Cogini blog when it was starting out like yourself trying to figure out an approach. It takes some work but if you are down for it the work can be pretty rewarding. I wrote my own scripts using the information on Coflgini as a reference. I did not want to use theirs as is because it felt like I would be putting someone else in charge of my Devops and I needed to know how everything works under the hood in case issues arise. Hopefully it helps.
Last Post!
T0ha666
The link has changed How To: Deploying Phoenix Application on Ubuntu 20.04 LTS