0

I'm facing the following issue in an Elixir project and I would appreciate any kind of help.

my_service/mix.exs

def application do
    [
      extra_applications: [:foo_lib],
      mod: {My.Application, []}
    ]
end

When I'm running the app using

iex -S mix

the application runs smoothly. The issue raises up when I'm trying to run my application by creating a release as follows:

MIX_ENV=dev mix release
_build/dev/rel/my_service/bin/my_service console

After issuing those commands, the execution of the program seems to stuck at the execution of the foo_lib and I have to execute by hand

My.Application.start(nil,nil)

in order to continue the initialization of my_service.

Any ideas why I'm facing this strange behavior?

Adam Millerchip
  • 20,844
  • 5
  • 51
  • 74
funk
  • 2,221
  • 1
  • 24
  • 23
  • 1
    Please post your whole mix.exs file. Better yet, post the most basic project with one function that demonstrates your problem. – 7stud Jun 18 '19 at 17:02
  • not sure, but seems that `console` do not run application, try to run `_build/dev/rel/my_service/bin/my_service start` or `_build/dev/rel/my_service/bin/my_service foreground` – apelsinka223 Jun 20 '19 at 19:32

0 Answers0