Skip to content

Conversation

@ankhers
Copy link
Owner

@ankhers ankhers commented Feb 19, 2025

Ecto has mix tasks that will attempt to start the repo. In some of these
scenarios, the application will not yet have been started. Most notable
are ecto.create and ecto.migrate. These are aliased for you in a brand
new phoenix project under mix test.

With this new Provider.ecto_config/3 function, we ensure that the
given config process is running, and we will also shut it down
afterwards to ensure that when your application starts, we do not have
an issue with the process already being started.

Ecto has mix tasks that will attempt to start the repo. In some of these
scenarios, the application will not yet have been started. Most notable
are ecto.create and ecto.migrate. These are aliased for you in a brand
new phoenix project under `mix test`.

With this new `Provider.ecto_config/3` function, we ensure that the
given config process is running, and we will also shut it down
afterwards to ensure that when your application starts, we do not have
an issue with the process already being started.
@ankhers
Copy link
Owner Author

ankhers commented Feb 19, 2025

This will resolve #6

@ankhers ankhers merged commit ea8f62b into main Feb 20, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants