Artifact a6d8838c555bed3f7cd55922b3664950589ae584:
- File lib/antigone.ex — part of check-in [7c384fbb38] at 2016-01-19 06:29:51 on branch trunk — Add webserver (user: nalck size: 371)
defmodule Antigone do use Application def start(_type, _args) do import Supervisor.Spec, warn: false children = [ worker(__MODULE__, [], function: :serve), ] opts = [strategy: :one_for_one, name: Antigone.Supervisor] Supervisor.start_link(children, opts) end def serve do {:ok,_} = Plug.Adapters.Cowboy.http Router, [] end end