Current section
Files
Jump to
Current section
Files
lib/lazymaru.ex
defmodule Lazymaru do
use Application
def start(_type, _args) do
Application.ensure_all_started :plug
for {module, options} <- Lazymaru.Config.servers do
Plug.Adapters.Cowboy.http module, [], [port: options[:port]]
end
Lazymaru.Supervisor.start_link
end
end