Config.exs is not created by `mix new` command

Hi All,
I’ve noticed that there is no config.exs file in new elixir project starts by v1.9.
Anyone know why there is no config file?
Is there some command to create it, or I should create it manually?

mix new p

* creating README.md
* creating .formatter.exs
* creating .gitignore
* creating mix.exs
* creating lib
* creating lib/p.ex
* creating test
* creating test/test_helper.exs
* creating test/p_test.exs

Your Mix project was created successfully.
You can use "mix" to compile it, test it, and more:

    cd p
    mix test

Run "mix help" for more commands.

There is lack of

  • creating config
  • creating config/config.exs

This is expected as mix new – contrary to mix new --sup – assumes you want to build a stateless library and those are meant to work without using the app env based on the library guidelines: https://hexdocs.pm/elixir/library-guidelines.html

Therefore those files are not generated. You can however create them manually if you need to.

7 Likes