komutan_web.ex 364 B

1234567891011121314151617
  1. defmodule KomutanWeb do
  2. use Application
  3. require Logger
  4. def start(_type, _args) do
  5. port = Application.get_env(:komutan, :port)
  6. children = [
  7. Plug.Adapters.Cowboy.child_spec(:http, KomutanWeb.Router, [], [port: port])
  8. ]
  9. Logger.info("Started application")
  10. Supervisor.start_link(children, strategy: :one_for_one)
  11. end
  12. end