Current section
Files
Jump to
Current section
Files
lib/supervisor.ex
defmodule Infuse.Supervisor do
use Supervisor
require Logger
def start_link do
Supervisor.start_link(__MODULE__, :ok)
end
def init(:ok) do
children = [
Plug.Adapters.Cowboy.child_spec(:http, Infuse.HTTP.Router, [], [port: 8101])
]
Logger.info("Started Infuse Server on 8101")
supervise(children, strategy: :one_for_one)
end
end