kiel-cristian

kiel-cristian

Hi there all! First time here :). There is a way to use the param --name option from mix release usingdistillery with an edeliver command? (Like mix edeliver build release ... <release name somewhere>.... I’m actually building an umbrella app, with a main app release, and a sub app release. I could only achieve this by building the main (default) app through edeliver build command, and the sub app through a direct release command on the build server… but, I think that this is not and optimal/correct approach :/. Any ideas or different approaches around there?

Best regards,

Cristian

Showing Posts 1 to 6

OvermindDL1

OvermindDL1

For releases you don’t specify command line arguments like that, they are handled via the release building script (and baked in) that is handled by distillery and its configuration files, so you will want to look in it’s configuration documentation. :slight_smile:

kiel-cristian

kiel-cristian OP

Hi OvermindDL1, thanks for your answer,

I had already checked documentation, but, I’m not able to generate, or don’t know how to generate a release different than :default (Or the first one written on my rel/config.exs file) from my local machine through edeliver. The main release it´s triggered by mix edeliver build... from my local machine, using the build machine, but, my idea is to generate another release from my local machine, different than defaults.

It’s easy to do this inside the build machine (ssh login) and just exec a mix release --name ... or a similar command to generate a release inside build machine, that uses the rel/config.exs distillery file, I think you are talking about this config file right? I was trying to achieve a behaviour similar to Ruby’s Capistrano, when you are able to build or deploy everything starting from your local machine.

I don´t know if this is not possible due to edeliver design or if it’s actually possible to do using edeliver hooks, executing some arbitrary bash script to propagate exactly the release i want to build. I hope my idea is a little clearer now

OvermindDL1

OvermindDL1

You can see how via mix help release, it’s documented there. :slight_smile:

That… is entirely the point of Distillery though? I’m no sure what edeliver does actually other than copy things around, I don’t use it, I just copy the release myself as it’s a single directory rsync over… ^.^;

I’ve not used ruby either so no clue what that references. But yes, you can build and deploy from your local machine. What I do is just run my ./release.sh file, but internally it just builds, digests, releases, rsync’s a directory over, then ssh’s a command to the systemd service on the server to restart the server, it’s pretty dead-simple. :slight_smile:

No clue about edeliver, I’m honestly not actually that certain of what it is for or how it would simplify what I already do (I think it would just replace my last two lines of my release file with a single one maybe, but I don’t know if it can restarts services too or whatever it does? So I havn’t really see the point of it…).

kiel-cristian

kiel-cristian OP

Thanks again OvermindDL1! I think your approach is very nice. I would make some modifications to adjust it to my desired workflow and drop edeliver :). Edeliver just perform some remote ssh commands for you, sync repo on build machine, download builds, push again to staging or production servers… with a few commands

isaacsanders

isaacsanders

@kiel-cristian Have you gotten the Umbrella/Distillery/eDeliver trio to work? I am working on a project right now, and you have written the only post on Elixir-Forum that is tagged for all three. If so, would you mind messaging me, I don’t want to clutter up this post more than I am with this request.

kiel-cristian

kiel-cristian OP

Hi there Isaac, nope, sadly nope. After hours trying to generate specific releases through edeliver + distillery + Umbrella project I realized that edeliver does not handle that kind of usage. I am generating releases directly on my build server, and being careful with setup for environment variables, runtime variables, and moving builded releases on another folder after compiling. (Like distillery docs suggests to avoid directory mutations issues).

Regards

— All posts loaded —

Where Next? Top

Trending in Announcing Top

woylie
Flop is an Elixir library that applies filtering, ordering and pagination parameters to your Ecto queries. offset-based pagination with...
New
MRdotB
I needed to reuse React components from my Chrome extension in my Phoenix/LiveView backend. I noticed that for Svelte/Vue, there are live...
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
fuelen
Hi all! I want to present a small library which provides a mix task for generating an Entity-Relationship Diagram for Ecto schemas. You...
New
anuaralfetahe
Hello Published a new library - ProcessHub! ProcessHub is a library designed to manage process distribution within the Elixir cluster. ...
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

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
AstonJ
This showed up on my feed.. anyone heard of it? Just hype? Ox Alpha is a reasoning model designed for coding, sustained ag...
New
sergio
It’s not that it’s vocabulary is too advanced. It’s something worse. I get lost trying to follow even a paragraph written by Claude. It’...
New
sorenone
Today we’re releasing Oban for Python. Not an Oban client in Python. Not a pythonx wrapper embedded in Elixir. Nope, it’s a fully operati...
New
webofbits
With AI doing more of the implementation work, I’ve been wondering how much coding I should deliberately keep doing myself. My main conc...
#ai
New
akoutmos
@hugobarauna, Dr. Dimitrios Koutmos (my brother) and I (Alex Koutmos) have been hard at work on writing a book on how you can use Elixir ...
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews