Running phx.gen.context targeting a specific umbrella application

I noticed that if you run phx.gen.context in a phoenix umbrella app with a “app” and an “app_web” dir in the lib directory, running this command will create files in the “app” child application instead of the “app_web/lib” directory.

I would like to be able to use the phx.gen.context in a way where I can target the created files to be placed in a specific app in my umbrella. Is there way to somehow pass a flag to do so?


I actually just found this myself by looking into the config.exs file of a phoenix app created with --umbrella

 config :phoenix_web, :generators,
   context_app: :other_app_in_umbrella

Was about to say that. Glad you found it! :slight_smile: