When should I generate a mix umbrella vs a phoenix umbrella?

Loa*_*... 5 elixir-mix elixir phoenix-framework umbrella

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/
Run Code Online (Sandbox Code Playgroud)

phoenix gives:

- build/dev/(consolidated/lib)
- apps/(app_name/app_name_web)
- config/(configs for different envs)
- deps/(stuffffff)
Run Code Online (Sandbox Code Playgroud)

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?

Jos*_*lim 8

归根结底,他们都是同一回事。所不同的是,Phoenix已经生成了一个包含两个应用程序的伞,一个用于您的域,另一个用于网络,如果您运行,则mix new必须手工组装所有内容。因此,如果您要构建Web应用程序,请使用Phoenix,因为它可以使您在设置所有内容时抢先一步。