defmodule Gyx.Application do @moduledoc false use Application def start(_type, _args) do import Supervisor.Spec, warn: false topologies = [ gyx: [ strategy: Cluster.Strategy.Gossip ] ] IO.puts "" IO.puts " ████████╗ ████╗ ██╗ Reinforcement" IO.puts " ██╔════╚██╗ ██╔╚██╗██╔╝ Learning for" IO.puts " ██║ ███╚████╔╝ ╚███╔╝ Elixir" IO.puts " ██║ ██║╚██╔╝ ██╔██╗ http://gyx.ai" IO.puts " ╚██████╔╝ ██║ ██╔╝ ██╗ ______________" IO.puts " ╚═════╝ ╚═╝ ╚═╝ ╚═╝" children = [ {Cluster.Supervisor, [topologies, [name: Gyx.ClusterSupervisor]]}, supervisor(Gyx.Supervisor, []) ] opts = [strategy: :one_for_one, name: Gyx.Supervisor] Supervisor.start_link(children, opts) Gyx.Supervisor.start_link() end end