Current section
Files
Jump to
Current section
Files
lib/runtime/application.ex
defmodule Dictionary.Runtime.Application do
alias Dictionary.Runtime.Server
use Application
use Supervisor
def start(_type, _args) do
child = [
{Server, []}
]
opts = [
name: __MODULE__,
strategy: :one_for_one,
max_restarts: 1,
max_seconds: 5
]
Supervisor.start_link(child, opts)
end
end