Kurisu

Kurisu

Are there any free or very low cost vps solution to build Elixir app releases with distillery?

This is not really an elixir question but maybe someone can help me ?

I deployed with success my first phoenix app on a Digital Ocean VPS, just following Phoenix and Distillery docs. I find that very simple even if I spent a lot of time trying and trying again the process until all went fine. ^^

Now my concern is that each time I made a new release or rebuild one, I have to upload it from my computer to the production VPS. Currently the whole release archive is just about some 30 Mb, but that could grow in the future, plus I could deploy the same release many times.

Long story short, I’m using a slow and expensive (for me at least) mobile data for all internet mater.
So instead of building my apps releases locally, if I can do it on a free or almost free VPS host, that will be very great.

I already tested the process on a $5/month Digital Ocean VPS, but I’m searching for something even cheaper if possible. All I have to do on this VPS is to setup elixir, phoenix, npm, webpack and git.
Then periodically I will pull a project from a git repository, then compile for production and build a release that will be sent to the production VPS. All the remaining time this VPS will be inactive.

Most Liked

NobbZ

NobbZ

Personally, I build everything on gitlab-ci, where I also have hosted my sources.

Currently I do SSH into the hosting server and download the release from there using curl and deploy manually that way.

But since it does not use my regular slowish internet connection (upload is capped at 1Mbit/s) but some much faster lane with 100Mbit/s (or even more?), it is currently worth the effort. Unless you stay below 2000 minutes a month across all private repos CI is even free for private repos in the free tier.

Currently I’m evaluating some tools that would check gitlab on a regular basis for new releases and deploy automatically. But until I have done that, it will take some time…

It will take me even some time to get my current set up back online, as messed up with a lot of stuff recently while experimenting around with some config management tool…


edit

You can get some insight to the gitlab side of things in a recent project of mine which I started publicly:

frigidcode

frigidcode

Memory and execution caps on AWS Lamba, may or may not exceed those.

hassan

hassan

This use case seems like a potential fit for “serverless” e.g. AWS Lambda.

Where Next?

Popular in Questions Top

bsollish-terakeet
Credo is smart enough to check for (something like) this: assert length(the_list) == 0 with this response: Checking if an enum is empt...
New
New
logicmason
Hi there, I'm working through my first release with elixir/phoenix. I've built a release with distillery and found that it crashes when I...
New
Jim
As a follow up to my earlier question: I have the code compiling and running but not getting a successful login from the rest server. ...
New
hariharasudhan94
I would like to know what is the best IDE for elixir development?
New
mcarvalho
What is the difference between System.get_env and Application.get_env? For example, what are best practices to use one versus another.
New
ashish173
I am using Ecto timestamps with postgres, I can see the timestamps() use the :naive_dateime but for my use case I wanted to store the ti...
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 Postg...
New
lucidguppy
I have a super simple question about elixir - how would I take a file like this foo bar baz and output a new file that enumerates th...
New
jay1
Why is it that the mnesia database isn’t the most preferred database for use in Elixir/Phoenix?
New

Other popular topics Top

Qqwy
Update: How to use the Blogs & Podcasts section You can post links to your blog posts or podcasts either in one of the Official Blog...
3268 119930 1237
New
sergio
In Ruby, I can go: User.find_by(email: "foobar@email.com").update(email: "hello@email.com") How can I do something similar in Elixir? ...
New
dotdotdotPaul
Okay, I'm having a heck of a time trying to figure out how to best handle the validation of belongs_to associations in Ecto. I'm sure I'...
New
yawaramin
In the Dialyzer docs ( http://erlang.org/doc/man/dialyzer.html#requesting-or-suppressing-warnings-in-source-files ), there is a way to tu...
New
grych
Hi folks, Few months ago I have announced the proof-of-concept of the library to manipulate the browsers DOM objects directly from Elixi...
639 49522 488
New
SoCreat
i’m a new one to elixir which editor can i use vs code? or atom? Thanks! :smiley:
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
belgoros
I’m not a pro in using Regex and can’t figure out why the following behaviour happens, especially if we take into account the difference ...
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
lanycrost
Hi everyone! I need implement if…else if…else condition from my elixir code, and anymore of this control flow structures not work proper...
New

We're in Beta

About us Mission Statement