Hello!
I have my elixir app, every things works and starts well, but after I compile my project and try to start it, I have problem with it. I think I have misunderstanding how to start app.
After googling my question I found answer that start compiled app i need to run:
iex(1)> :application.ensure_all_started(:dispatcher_service)
I did it in dispatcher_service/_build/dev/lib/dispatcher_service/ebin
, but get error with starting other dependents apps.
{:error, {:method_missing, {'no such file or directory', 'method_missing.app'}}}
my mix.exs
defmodule DispatcherService.MixProject do
use Mix.Project
def project do
[
app: :dispatcher_service,
version: "0.1.0",
elixir: "~> 1.6",
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
applications: [:method_missing, :logger, :mongodb_ecto, :ecto],
mod: {DispatcherService.Application, []}, # points to the module with application
extra_applications: [:logger]
]
end
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:amqp, "~> 1.0"},
{:poison, "~> 3.1"},
{:postgrex, ">= 0.0.0"},
{:ecto, "~> 2.0"},
{:mongodb_ecto, "~> 0.1"},
{:method_missing, "~> 0.1.0"},
{ :uuid, "~> 1.1" }
# {:dep_from_hexpm, "~> 0.3.0"},
# {:dep_from_git, git: "https://github.com/elixir-lang/my_dep.git", tag: "0.1.0"},
]
end
end
tree dispatcher_service/_build/dev/lib
.
βββ amqp
βββ amqp_client
βββ connection
βββ db_connection
βββ decimal
βββ dispatcher_service
βββ ecto
βββ goldrush
βββ jsx
βββ lager
βββ method_missing
βββ mongodb
βββ mongodb_ecto
βββ poison
βββ poolboy
βββ postgrex
βββ rabbit_common
βββ ranch
βββ ranch_proxy_protocol
βββ recon
βββ uuid