24 lines
599 B
Elixir
24 lines
599 B
Elixir
defmodule Scopes.CSys.Application do
|
|
use Application
|
|
|
|
alias Scopes.Util
|
|
|
|
require Logger
|
|
require Util
|
|
|
|
|
|
@impl true
|
|
def start(type, args) do
|
|
IO.puts("Hello CSys")
|
|
Logger.info(Util.show [type, args])
|
|
# input_neurons = Environ.create_input
|
|
IO.inspect Scopes.CSys.Server.Endpoint.child_spec(input: %{[:csys, :s01] => "dummy"})
|
|
children = [
|
|
#Scopes.CSys.Server.Endpoint
|
|
{Scopes.CSys.Server.Endpoint, input: %{[:csys, :s01] => "dummy"}}
|
|
]
|
|
opts = [strategy: :one_for_one, name: Scopes.CSys.Supervisor]
|
|
Supervisor.start_link(children, opts)
|
|
end
|
|
end
|
|
|