Current section
Files
Jump to
Current section
Files
lib/application.ex
defmodule Astrex.Application do
use Application
@impl true
def start(_type \\ [], _args \\ []) do
location = Application.get_env(:astrex, :default_location)
opts = [strategy: :one_for_one, name: Astrex.Supervisor]
children = [
{Astrex.Server, location}
]
Supervisor.start_link(children, opts)
end
end