From b6d4f7044fa9bec32489d0ca5c3392e76ad2c1bc Mon Sep 17 00:00:00 2001 From: Logan Hunt Date: Tue, 31 Jan 2023 19:05:01 -0700 Subject: Elixir cluster! --- lib/chessh/application.ex | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib/chessh') diff --git a/lib/chessh/application.ex b/lib/chessh/application.ex index 5538e39..59926cc 100644 --- a/lib/chessh/application.ex +++ b/lib/chessh/application.ex @@ -22,7 +22,9 @@ defmodule Chessh.Application do scheme: :http, plug: Chessh.Web.Endpoint, options: [port: Application.get_env(:chessh, Web)[:port]] - ) + ), + {Cluster.Supervisor, + [Application.get_env(:libcluster, :topologies), [name: Chessh.ClusterSupervisor]]} ] opts = [strategy: :one_for_one, name: Chessh.Supervisor] -- cgit v1.2.3-70-g09d2