Hi ppl, I have a phoenix in umbrella shape like this:
.
├── apps
│ ├── app_1
│ ├── vitrine
│ └── vitrine_web
├── config
│ ├── config.exs
│ ├── dev.exs
│ ├── prod.exs
│ ├── prod.secret.exs
│ └── test.exs
├── mix.exs
├── mix.lock
└── README.md
I want use phx.gen.schema Blog.Post blog_posts title:string --context-app app_1
but I got this error:
** (Mix) no directory for context_app :app_1 found in vitrine_web's deps.
Ensure you have listed :app_1 as an in_umbrella dependency in mix.exs:
def deps do
[
{:app_1, in_umbrella: true},
...
]
end
Existing deps:
[:connection, :cowboy, :cowboy_telemetry, :cowlib, :db_connection, :decimal, :ecto, :ecto_sql, :file_system, :gettext, :jason, :mime, :phoenix, :phoenix_ecto, :phoenix_html, :phoenix_live_dashboard, :phoenix_live_reload, :phoenix_live_view, :phoenix_pubsub, :plug, :plug_cowboy, :plug_crypto, :postgrex, :ranch, :telemetry, :telemetry_metrics, :telemetry_poller, :vitrine]
Being that I do not have app_1 as a dependency from web, this will be a separated app but I want the generated code that this mix task provides.
Is there an way to generate this schema and the your code without put app_1
as a dependency from web?