Current section

Files

Jump to
ex_activity lib ex_activity application.ex
Raw

lib/ex_activity/application.ex

defmodule ExActivity.Application do
@moduledoc false
use Application
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
def start(_type, _args) do
import Supervisor.Spec, warn: false
# Define workers and child supervisors to be supervised
children = [
# Start the Ecto repository
supervisor(ExActivity.Repo, [])
]
# See https://hexdocs.pm/elixir/Supervisor.html
# for other strategies and supported options
opts = [strategy: :one_for_one, name: ExActivity.Supervisor]
Supervisor.start_link(children, opts)
end
end