Current section
Files
Jump to
Current section
Files
lib/driver8/application.ex
defmodule Driver8.Application do
@moduledoc false
use Application
def start(_type, _args) do
children = [
Plug.Adapters.Cowboy.child_spec(
scheme: :http,
plug: Driver8.Plug,
options: [
port:
Application.fetch_env!(:driver8, :port)
|> IO.inspect()
]
),
Driver8
]
opts = [strategy: :one_for_one, name: Driver8.Supervisor]
Supervisor.start_link(children, opts)
end
end