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.

First 4 of 4 Posts Switch mode

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:

Kurisu

Kurisu OP

Thanks for sharing your strategy. I will give it a try.

hassan

hassan

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

frigidcode

frigidcode

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

— All posts loaded —

Where Next?

Trending in Questions Top

stjefim
Hello! Suppose you are building workflow (order / task / payment) processing system with the following requirements: Each workflow con...
New
jonnycharles
I’m in search of an Elixir library that offers PDF generation capabilities similar to Ruby’s Prawn. While there have been discussions abo...
New
spammy
I’m looking to build a personal workflow to quickly deploy web applications written in elixir/phoenix, for local consumption (ie not on t...
New
silverdr
Using Phoenix.LiveView.TagEngine as an EEx.Engine is deprecated! To compile HEEx, use Phoenix.LiveView.TagEngine.compile/2 instead. Sta...
New
dli
Before I dive in myself, did anyone successfully sprinkle Hologram into their existing LiveView app? Looking for hints regarding: Addi...
New
bottlenecked
Hi all, I wanted to ask how the community is dealing with post-release steps. Today we have Ecto migrations, which make sure that the db...
New
michallepicki
I am using Oban and occasionally, shortly after a deployment, a handful of jobs can fail because of dependency on other parts of the syst...
New

Other Trending Topics Top

JesseHerrick
Hey, I’m Jesse and I’m the main contributor behind Dexter, a full-featured, lightning-fast Elixir LSP optimized for large codebases. It s...
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
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
ausimian
Emily is an Elixir library that runs Nx computations on Apple’s MLX. Install it as the default Nx backend and Nx, defn, Axon, Nx.Serving,...
New
type1fool
I just stumbled on a newly redesigned elixir-lang.org. :tada: It looks like @Software_Mansion did the work, and I think it is generally a...
New
akoutmos
@hugobarauna and I (Alex Koutmos) have been hard at work on writing a book on Nerves that takes you from simply blinking LEDs to building...
New

We're in Beta

About us Mission Statement