EctoSqlReadiness (ecto_sql_readiness v0.2.0)
How can we ensure that there are no pending migration during deployment? How can we ensure that Ecto is ready?
This library has been used with AWS Codedeploy, so we don't send any traffic to the containers unless we ensure that Ecto is ready to work.
Summary
Types
Link to this type
repo()
@type repo() :: module()
Functions
Link to this function
pending_migrations(repos)
Link to this function
probes(repos)
@spec probes([repo()]) :: :ok | :fail_connection | :pending_migrations
Uses to known when the Ecto Repo is ready.
Examples
iex> EctoSqlReadiness.probes([Store.Repo])
:ok