Qqwy

Qqwy

TypeCheck Core Team

I am working on an application that has multiple parts. Therefore, it was split in an Umbrella application. However, I am having trouble figuring out what should be put in which mix.exs file. Starting the project normally works fine, but when attempting to compile the application for production-use, (using edeliver), I get strange errors.

One application (payment_dispatcher) is a client that consumes an external API.
One application (heads) is a Phoenix server.
heads needs payment_dispatcher as dependency, as the server needs access to parts of the API.

Basically:

appname
--heads
----phoenix
----payment_dispatcher
----(... some other things)
--payment_dispatcher
----httpoison
----(... some other things)

When edeliver uses the following command to compile the files:

APP="appname" MIX_ENV="prod" AUTO_VERSION="" SKIP_RELUP_MODIFICATIONS="" RELUP_MODIFICATION_MODULE="" mix do clean, deps.compile, compile

I get an error that HTTPoison.Base, one of the modules inside the :httpoison dependency of payment_dispatcher cannot be found.

I have listed :httpoison inside apps/payment_dispatcher/mix.exs’s deps and applications lists. But the error keeps happening.

I am unsure as to:

  • Why above error happens. Is compilation in the wrong order? How can I change that?
  • Where to put payment_dispatcher as dependency: In mix.exs or apps/heads/mix.exs? (as the Phoenix app depends on it)

Any help would be appreciated.

Showing Posts 1 to 3

jukkap

jukkap

I have the same or at least problem with deps and edeliver. Umbrella app which at the moment has just one simple app with :amqp dependency.
Works fine locally, but when I do “mix edeliver build release” I get :AMQP not found when it is trying to compile my code. When I go to the build host and build the app myself it works. I can see from edeliver debug log that nothing went wrong in getting the depencies yet the error persist.

In any case, if you have found a solution for this let me know.

Any help would be much appreciated.

hubertlepicki

hubertlepicki

Do you guys have one app specifying another one as dependency with in_umbrella? I think if you have apps
apps/a and apps/b, you pick up one, say a and edit it’s apps/a/mix.exs and add something like this to deps:

{:b, in_umbrella: true}

please let me know if that helps or not :slight_smile:

jukkap

jukkap

The missing dependency was cause by cleanup not working. If I ran mix edeliver build release --skip-mix-clean. I would get past that problem but then I ran into loads of other problems.
The whole thing is described in more detail in this SO question.

— All posts loaded —

Where Next? Top

Trending in Questions Top

katta
I having some trouble figuring out if I have set myself too strict of standards for my production server. Currently I can handle 75% of r...
New
achenet
Hello, I’m trying to build a basic Phoenix web-app, and I’d like to use Tailwind. However, when I launch mix phx.server, I get an error...
New
kpanic
Hi everyone, I am toying with the idea of building a “match maker” for giving personal help to people that wants to start coding. I sta...
New
Cxx-mlr
I’m working on a small exercise involving update_in/3, and I came up with this solution: data = %{ name: "Periodic Table", category:...
New
ChrisAmelia
I’ve got trouble wrapping my head around the order in which functions are called in this snippet (from Phoenix’s authentication): toke...
New
dillonoconnor
Is there any way to avoid the Hologram compiler running when using iex? It seems like the front-end code could potentially be disregarded...
New
thiagogsr
** (ArgumentError) expected :max_attempts to be a positive integer, got: {:@, [line: 10, column: 19], [{:max_attempts, [line: 10, column:...
New

Other Trending Topics Top

GenericJam
Edit: 2026 May 15 - This post is archived. Mob is alive!! Main docs: mob v0.7.11 — Documentation A bit of explanation for the slightly c...
New
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
garrison
Hobbes is a low-level distributed database for the Elixir programming language. Hobbes provides a simple, safe, and scalable storage lay...
New
budgie
A little off-topic, but I feel like people here have a good head on their shoulders. I used to be quite good at making software. Was luc...
New
KristerV
Hey. Is there anyone here who creates agents in their apps? Not talking about using agents, but creating them. I’m finding it pretty diff...
New
mcass19
ExRatatui lets you cook up rich terminal UIs in Elixir, powered by Rust’s ratatui via Rustler NIFs. Build interactive terminal applicatio...
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews