Phoenix.Endpoint.Supervisor is not available

Hi, after compiling my application,
Everytime i launched the compile version i end up with the error “UndefinedFunctionError) function Phoenix.Endpoint.Supervisor.start_link/2 is undefined (module Phoenix.Endpoint.Supervisor is not available)”.
i’m quite the beginner at elixir but i think i might be missing a dependency,
although when i run the application with iex this doesn’t happens.

Here is my mix file

defmodule RuntimeInterface.MixProject do
  use Mix.Project

  def project do
      app: :runtime_interface,
      version: "0.2.0",
      build_path: "../../_build",
      deps_path: "../../deps",
      lockfile: "../../mix.lock",
      elixir: "~> 1.5",
      elixirc_paths: elixirc_paths(Mix.env()),
      compilers: [:phoenix, :gettext] ++ Mix.compilers(),
      start_permanent: Mix.env() == :prod,
      deps: deps()

  # Configuration for the OTP application.
  # Type `mix help` for more information.
  def application do
      mod: {RuntimeInterface.Application, []},
      applications: [
      extra_applications: [

  # Specifies which paths to compile per environment.
  defp elixirc_paths(:test), do: ["lib", "test/support"]
  defp elixirc_paths(_), do: ["lib"]

  # Specifies your project dependencies.
  # Type `mix help deps` for examples and options.
  defp deps do
      {:corsica, "~> 1.0"},
      {:bcrypt_elixir, "~> 2.0.3"},
      {:comeonin, "~> 5.1.2"},
      {:ex_aws, "~> 2.1"},
      {:ex_aws_s3, "~> 2.0"},
      {:gettext, "~> 0.11"},
      {:guardian, "~> 1.0"},
      {:jason, "~> 1.0"},
      {:phoenix, "~> 1.4.7"},
      {:phoenix_html, "~> 2.11"},
      {:phoenix_live_reload, "~> 1.2", only: :dev},
      {:phoenix_pubsub, "~> 1.1"},
      {:poison, "~> 3.1.0"},
      {:plug_cowboy, "~> 2.0"},
      {:sweet_xml, "~> 0.6"},

      {:pubisubis, in_umbrella: true},
      {:solver, in_umbrella: true},
      {:chocapix, in_umbrella: true}

If anybody could help, it would be the most welcome,

Welcome to the forum

Did you install elixir and phoenix on your machine using the official guides?

Install hex

mix local.hex

Install the latest phoenix

mix archive.install hex phx_new 1.4.11

Did you clone a repository from github?

First can you tell us how you created this app?(what command did you use) mix phx new my_app?

can you show the content of the mix.exs

After you answer this question we will be able to help you further.

Do not use :applications unless you know what you are doing.

Please move :corsica to :extra_applications, but only if that is really necessary, usually it is enough to trust in mix’ inference of dependencies.

1 Like

I put :corsica in :applications because the documentation require it to make sure it is started before my application.

I already posted my mix file and made sure everything was installed.
I use the command mix release to generate my compiled app and then started it with the command listed after the release generation.

1 Like

In presence of :applications the inference is disabled. Corsica will be started because of inference, if it’s not put it in :extra_applications.

But remove :applications.

1 Like

Yes, I see now, when I posted i was very tired my mistake.

That actually was my problem. Thank you.