thbar

thbar

Deploying Phoenix/Elixir to UpCloud - 2026 advice?

Hi there,

I’m in the process of deploying a Phoenix app to a EU host (UpCloud specifically), where the instances provided are mostly raw VMs with an init script (you can manage the VMs with Terraform & Ansible later if needed).

I am interested to hear about people who went that road recently:

  • building releases locally & pushing them via SSH, to start (I’m working locally on Mac OS)
  • picking a server (nginx/caddie versus raw cowboy/bandit with SSL?)
  • later : building releases on the code hosting (e.g. GitHub) & do CD from there
  • potentially, the init scripts that you may have used
  • no docker necessarily for now, but that may come later

What are your preferred resources, scripts & snippets to achieve that?

I went through the forum but so far found mostly outdated advice.

Thanks!

Most Liked

Dmk

Dmk

I just created GitHub - dmkenney/xamal: Deploy Elixir apps to bare metal servers. Like Kamal, but with native releases + Caddy instead of Docker. · GitHub - which is has the same principals and ergonomics as Kamal - just removes the need for Docker on the server. So you build your Elixir release and it uses SSH to push it the server(s). Caddy is installed on the server and is used for SSL if desired, and also for 0-downtime deploys.

I had previously been using Kamal and loved it - but really wanted to remove the Docker dependency on the server for various reasons.

Using this now for two different apps, and it working well.

Dmk

Dmk

Xamal doesn’t have anything to do with the DB. I use Ansible for provisioning the VPS - which handles installing and configuring the DB as well as anything else I need.

Kamal has the notion of accesories (of which a DB can be one) if that’s more your style.

Where Next?

Popular in Discussions Top

matthias_toepp
I’d love to hear what people think about Wisp, the new Gleam web framework started by Gleam’s primary creator Louis Pilfold. Gleam, alon...
New
marciol
Please, let me know if this kind of discussion already took place in another topic . Hi all, how do you consider if is better to build ...
New
laiboonh
Hi all, I am trying to convince my team to use liveview over the current react. What are some of the points where one should consider us...
New
Crowdhailer
I’ve been hearing much about the new formatter and it’s something I have been keen to try. I find examples buy far the most illuminating...
248 19365 150
New
ejpcmac
I have discovered Nix last month and I am currently on my way to migrating to it—both on macOS at home and the full NixOS distrubution at...
New
New
hazardfn
I suppose this question is effectively hackney vs. ibrowse but we are at a point in our project where we have to make a choice between th...
New
klo
Got a question about when to concat vs. prepending items to list then reversing to achieve appending. So i know lists boil down to [1 | ...
New
dogweather
I wrote this comment on r/haskell, and it’s not popular there. :wink: But I think I’m on to something… Haskell reminds me of Java, and e...
New
axelson
Decided against including more info in the title, but the gist is that Plataformatec sponsored projects will continue with the assets bei...
New

Other popular topics Top

axelson
This post is a wiki (feel free to hit the edit button near the bottom right of this post to add your own changes!) This post collects co...
239 48475 226
New
lastday4you
I wanted to check elixir version in phoenix because i found that my elixir is 1.5 but when i use Enum.chunk_by it said the function is un...
New
TunkShif
This post is an instruction guide to help you setup your Neovim for Elixir development from scratch. It includes general information on h...
274 42158 114
New
Nvim
Anybody knows a comprehensive comparison of Django and Phoenix, thanks for the help. Where are they similar? Where do they differ the m...
New
johnnyicon
Hi all, I’ve just started learning Elixir and Phoenix Framework, so please pardon my n00bness at this stage. I’m trying to use Postgres...
New
pmjoe
I have a relationship of love and hate with Elixir. Lots of things are just absolutely right, but there are some things that are kind of ...
New
josevalim
Hi everyone, One of the features added to Elixir early on to help integration with Erlang code was the idea of overridable function defi...
New
vonH
When I run the Plug and I recompile I wind up having to use Ctrl C to quit iex and start again. Witht the help of rlwrap I can use the cu...
New
rms.mrcs
Hi, I need to transform a list of numbers into a map where the keys are the indexes and the values are the original values of the list. ...
New
hariharasudhan94
I would like to know what is the best IDE for elixir development?
New

We're in Beta

About us Mission Statement