Packages
drab
0.8.2
0.10.5
0.10.4
0.10.3
0.10.2
0.10.1
0.10.0
0.9.3
0.9.2
0.9.1
0.9.0
0.8.3
0.8.2
0.8.1
0.8.0
0.7.7
0.7.6
0.7.5
0.7.4
0.7.3
0.7.2
0.7.1
0.7.0
0.6.3
0.6.2
0.6.1
0.6.0
0.6.0-pre.1
0.5.6
0.5.5
0.5.4
0.5.3
0.5.2
0.5.1
0.5.0
0.4.1
0.4.0
0.3.5
0.3.4
0.3.3
0.3.2
0.3.1
0.3.0
0.2.6
0.2.5
0.2.4
0.2.3
0.2.2
0.2.1
0.2.0
0.1.1
0.1.0
Remote controlled frontend framework for Phoenix.
Current section
Files
Jump to
Current section
Files
lib/drab/supervisor.ex
defmodule Drab.Supervisor do
@moduledoc false
use Application
require Logger
def start(_type, _args) do
import Supervisor.Spec
# Run Drab Test App endpoint, when running tests or development
children =
case Code.ensure_compiled(DrabTestApp) do
{:error, _} -> []
{:module, DrabTestApp} -> [supervisor(DrabTestApp.Endpoint, [])]
end
opts = [strategy: :one_for_one, name: Drab.Supervisor]
Supervisor.start_link(children, opts)
end
# def config_change(changed, _new, removed) do
# DrabTestApp.Endpoint.config_change(changed, removed)
# :ok
# end
end