I'm not sure when to use mix and when to use phoenix for creating umbrella applications.
I have read a lot of articles online but they are not clear of the reasoning for using mix over phoenix and vis versa.
mix gives:
- apps/
- config/
phoenix gives:
- build/dev/(consolidated/lib)
- apps/(app_name/app_name_web)
- config/(configs for different envs)
- deps/(stuffffff)
mix new [UMBRELLA NAME] --umbrella
VS mix phx.new [UMBRELLA NAME] --umbrella
If I want to generate an umbrella that has an application that will serve html/json, how should I look at these commands?
mix phx.new
command. – HogweedPhoenix In Action 1.4
, and it uses$ mix new --umbrella auction_umbrella
. Then inside theapps/
directory, the book does:$ mix new auction --sup
to create the "application". Then after getting the application to run on its own, it creates the web interface to the application with:.../apps$ mix phx.new.web auction_web --no-ecto
. I guess José Valim is saying that if you use$ mix phx.new --umbrella auction_web
then those two apps will already be created for you. – Malacostracan