- flake.nix: Elixir 1.18.4 / OTP 27 / Node 22 dev shell - .envrc: use flake - config/config.exs: move fetch_env! to runtime.exs (compile-time safe) - config/runtime.exs: all secrets loaded at runtime via env vars - mix.lock: generated after mix deps.get - All 3 apps compile cleanly Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
14 lines
407 B
Elixir
14 lines
407 B
Elixir
defmodule Ecto.Adapters.SQL.Application do
|
|
@moduledoc false
|
|
use Application
|
|
|
|
def start(_type, _args) do
|
|
children = [
|
|
{DynamicSupervisor, strategy: :one_for_one, name: Ecto.MigratorSupervisor},
|
|
{Task.Supervisor, name: Ecto.Adapters.SQL.StorageSupervisor}
|
|
]
|
|
|
|
opts = [strategy: :one_for_one, name: Ecto.Adapters.SQL.Supervisor]
|
|
Supervisor.start_link(children, opts)
|
|
end
|
|
end
|