Ecto SQLite connection failed

Hello,
I have Phoenix project mydatabase that connects to sqlite database using Ecto and it works perfectly, I have created a second project myserver which does nothing except including the first project as dependency

defp deps do
...
{:mydatabase, path: "path/to/mydatabase"},
...

when running myserver I had always an error :

you must provide a database... 

That’s error means that the connection with database is failed, but when running just the first project everything works fine so where is the problem please ?

Hi @Sidi_Mohammed when you include a project as a dependency, none of that project’s configuration is imported. You need to re-create all relevant configuration in your myserver project.

2 Likes

Exactly, thanks @benwilson512