koen_vb

koen_vb

Hi, I was looking for a pointer of how I could most easily start with phoenix regarding deploying it to something like linode or google cloud.

Its a side project which would use some websockets and liveview but I have no experience with docker or kubernetes, was just looking for a quite straightforward way of deploying an elixir application.

So just something where I do not have too much things to do, no CI is required or test runners, just copy to my server and start it :slight_smile:

Thanks!

Showing Posts 11 to 2

wallyfoo

wallyfoo

I found this tutorial for deploying phoenix with dokku to be incredibly helpful. One of the downsides with dokku is that it doesn’t do hot code updating, but for a simple project, that’s not a deep concern.

https://dev.to/mplatts/deploying-phoenix-via-dokku-1gip

axelson

axelson

Scenic Core Team

If you want something easy and simple then I think you’d definitely want to look at http://heroku.com/ or gigalixir (as previously mentioned). They both have free tiers which is great for a side project.

I think you’d want to stay away from docker and kubernetes if you’re just getting started.

aenglisc

aenglisc

I’m surprised that nobody has mentioned gigalixir so far.

OvermindDL1

OvermindDL1

Because erlang has :observer, which is built on wxWidgets, a GUI framework built on X. :slight_smile:

This means you can ssh -X user@server and you can startup a beam node and start observer to have it appear on your local machine. :slight_smile:

Although running a local node connected remotely (like over an ssh tunnel) would be faster. ^.^

koen_vb

koen_vb OP

I started by just installing all my dependencies on a 5$ linode and got everything working!
Only thing was that when I apt-get install esl-erlang it installed a whole bunch of other packages like xserver etc which was a bit strange to me?

Thanks a lot!

tfwright

tfwright

I posted my experience deploying to a linode instance with ansible in this thread

tmartin8080

tmartin8080

I wrote some articles about basic Phoenix Deployment (render, Edeliver, distillery) recently that may help you get started:

https://phxroad.com/skills/devops.

thiagomajesk

thiagomajesk

Been there done that (recently). My two cents:
Go with mix releases and just follow the Phoenix docs (it doesn’t get easier than that).

My experience was that the number of available blog posts and tutorials online made me a little bit confused about what was the “recommended way” to deploy whether the reality of how to do it is way simpler :wink:

After you feel comfortable with the basics steps I’ll advise looking into docker or configuring a deployment pipeline.

koen_vb

koen_vb OP

Thanks, never seen render, so nice suggestion.
Then a second question was:

Should I use mix/distillery/elixir releases?

(Note, I am indeed just looking for some easy deployment, just as a start to get things going)

Where Next? Top

Trending in Chat/Questions Top

Other Trending Topics Top

mudasobwa
I am happy to introduce the very α version of the new programming language compiled to BEAM. Welcome Cure. It has literally three kille...
New
marciok
Hi there! We created Gust: A task orchestrator inspired by Airflow. For those who have never heard about Aiflow, it’s a Python-based wor...
New
jimsynz
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
Dmk
Xamal is a deployment tool for Elixir apps that deploys native releases to bare metal servers over SSH. It’s a port of GitHub - basecamp/...
New
Damirados
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
netoum
Corex is an accessible, unstyled UI component library for Phoenix that integrates Zag.js state machines using Vanilla JavaScript and Live...
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews