koen_vb

koen_vb

Simple Phoenix deployment for beginners?

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!

Most Liked

mindok

mindok

The render.com deployment guide is pretty good, and works very nicely for deploying to render.com too!!

Guide is here:

I deploy my charting library sample code and package website more or less using that recipe. Code is here: GitHub - mindok/contex-samples: Sample web application demonstrating contex features · GitHub.

bin folder contains the release script.

The sample app uses web sockets to support liveview pages.

If you don’t need a database, render.com is about $7/month. It’s a little more complex and a few more $/s a month if you need a database or file storage, but still pretty easy and the guides are really good - I have another database-backed app deployed there.

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.

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.

Last Post!

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

Where Next?

Popular in Chat/Questions Top

Fl4m3Ph03n1x
Background Hello all! So after my controversial introduction with Learning Elixir, frst impressions ( plz don't kill me ! ) - #39 by easc...
New
Nopp
Hello there, i have a lot to read and to learn, but are there some books, that are focussing on how i “should” plan the architecture of ...
New
Fl4m3Ph03n1x
Background I have been reading quite a lot about design and architecture in Elixir and overall FP. My latest incursions took to me the On...
New
New
lc0815
hello from a real frustrated newbe… I’m reading this article Full-Stack React With Phoenix (Chapter 3 | Introduction to Phoenix) by mich...
New
miguelsrrobo
hi i was wondering if it is necessary to learn erlang to learn elixir
New
xgilarb
Hi there, I’m interested in using Elixir because of the rumors about the reliability of the Phoenix framework, and surprisingly, Elixir’...
New

Other popular topics Top

nobody
Hi! In PHP: $_SERVER[‘SERVER_ADDR’] - in Elixir? Searched the docs for ip address and the web, no good results. Thanks!
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 55125 245
New
stefanchrobot
What’s the safe way to decode a JSON string into a struct? I want to avoid calling String.to_atom. Jason.decode can give me a map with st...
New
Darmani72
If I have a post route which an argument: post /my_post_route/:my_param1, MyController.my_post_handler How would get the post params ...
New
sorentwo
Hello! tl;dr Announcing Oban, an Ecto based job processing library with a focus on reliability and historical observability. After spen...
985 44778 311
New
senggen
Erlang/OTP 25 [erts-13.2.2] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] 15:22:35.803 [error] gen_event {lager_file_backend...
New

We're in Beta

About us Mission Statement