gtslist
How to specify the domain app when generating a new app inside an umbrella project?
I’ve created a new umbrella project
mix phx.new my_app --umbrella
so I got the umbrella folder with the two usual apps (one for domain, the other for web interface ),
apps/ my_app
apps/my_app_web
now I want to add the API frontend and I’m about to try
mix phx.new.web my_app_api --module MyAppAPI --no-html --no-webpack
but I realise that, AFAIK, there are no options to specify, on the command line, which should be the domain app that manages the repo, so if I give the above command I’ll have to search and edit all the generated entries (from MyAppAPI.Repo to MyApp.Repo), or add everything it is needed by hand if instead I use the --no-ecto option.
I’m wondering if there is a way to avoid all these, small but annoying, “by hands” operations when add a new app by the mix phx.new.web task.
Popular in Questions
Other popular topics
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #advent-of-code
- #elixirconf-us
- #distillery
- #processes
- #forms
- #api
- #metaprogramming
- #security
- #performance









