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

Jayshua
I recently came across the javascript library htmx. It reminded me a lot of liveview so I thought the community here might be interested....
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
jeramyRR
This is an interesting article to read. Elixir’s performance, like usual, is excellent. However, it seems like the high CPU usage is co...
New
cvkmohan
The upcoming Phoenix 1.6 release looks very interesting. Became a habit to watch the commits - and - what they are bringing in. phx.gen...
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
fireproofsocks
I’ve been working on an Elixir project that has required a lot of scripting. I usually reach for Elixir because I like it more (and in th...
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
restack_oslo
Hello, Please pardon me for any faux paux. I am 46 and this is my first time on a forum of any kind. I wanted to to get answers from tho...
New
MarioFlach
Hello, I want to share a project I’ve been working on for a while: https://github.com/almightycouch/gitgud Background Some time ago I ...
New
Qqwy
Looking at the stacks that existing large companies have used, WhatsApp internally uses Mnesia to store the messages, while Discord uses ...
New

Other popular topics Top

electic
Hi, I am new to Elixir. I am trying to use the DateTime component to insert a date into MySQL however the there seems to be no way to fo...
New
vertexbuffer
Hello, can anybody help here..? I have a list of players and I what to delete an element, but every for loop the list is reverting to ori...
New
Harrisonl
We have an ECS cluster with 4 services, where each task joins a single cluster, via discovery ECS discovery service. Currently when I de...
New
Emily
I have VueJS GUIs with the project generated using Webpack. I have Elixir modules that will need to be used by the VueJS GUIs. I forese...
New
chrismccord
Phoenix 1.4.0 released Phoenix 1.4 is out! This release ships with exciting new features, most notably with HTTP2 support, improved deve...
688 31194 112
New
joeerl
Hello again - after a longish gap I’ve decided I really must dig into Elixir and see what’s been happening here - so I have a few questio...
New
shijith.k
I am trying to start a new phoenix project with elixir 1.9, but mix phx.new does not work. It says that ** (Mix) The task "phx.new" could...
New
hariharasudhan94
I would like to know what is the best IDE for elixir development?
New
dokuzbir
I want to highlight html closing tags when i click a html tag. That works in .html files but doesnt work for html.eex templates. How can...
New
JakeBecker
TL;DR: I’ve just released an implementation of Microsoft’s IDE-independent Language Server Protocol for Elixir. It adds language support ...
1144 54250 245
New

We're in Beta

About us Mission Statement