I have an Umbrella Application. The application names themselves are name spaced, but the directories are not:
I am getting the following error when running
iex -S mix from parent umbrella dir:
Could not start application api: could not find application file: api.app.
I am assuming thats because the app compiles to
_build/dev/namespace_api, but iex is looking for
_build/dev/api… is that right?
Is there a way to fix this?
Try renaming your app in the
project function of the Mixfile module:
defmodule StuffAPI.Mixfile do
def project do
elixir: "~> 1.4",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
I generated it using
mix new stuff --umbrella
mix new api --module StuffAPI
EDIT. Sorry. I’ve just reread your question. I guees that wouldn’t work for you, since you want to keep the apps namespaced.
Currently the app name must be the directory name as well.
Thanks, for the replies @idi527 and @josevalim. I will bite the bullet and keep the app name and directory the same.