1234567891011121314151617 |
- defmodule KomutanWeb do
- use Application
- require Logger
- def start(_type, _args) do
- port = Application.get_env(:komutan, :port)
-
- children = [
-
- Plug.Adapters.Cowboy.child_spec(:http, KomutanWeb.Router, [], [port: port])
- ]
- Logger.info("Started application")
- Supervisor.start_link(children, strategy: :one_for_one)
- end
- end
|