Missing config directory in new Elixir 1.9 project

I have just upgraded my Elixir version from 1.7 to 1.9.
My existing application is running well so far.

I have, however, created a new project, and realized that after using the command:
mix new new_proj --sup
There was no config directory generated in the new project.

How do I handle this? Where do I put the things I would previously have put inside the config directory?

I am grateful for your assistance.



If you wish to use a config file you can create one and it will work as before.

However the config system is almost always not the best way to supply configuration to libraries so it has been removed from the default application, to avoid misleading developers. There is more detail here.


Hello @lpil,

Thanks for your response.
In the absence of config.ex, where do I put, for instance,

config :testapp, TestApp.Repo,
adapter: Ecto.Adapters.Postgres,
database: testdb,
username: testuser,
password: test123

or even the below:

config :testapp, TestApp.Mailer,
adapter: Bamboo.SendGridAdapter

From your experience, where do I declare the above lines of code?

Thanks in advance.


In this instance you would create a config.exs for this code :slight_smile:


Many thanks, @lpil.
I am grateful for your assistance.