summaryrefslogtreecommitdiff
path: root/lib/chessh
diff options
context:
space:
mode:
authorLogan Hunt <logan.hunt@usu.edu>2023-01-31 19:05:01 -0700
committerLogan Hunt <logan.hunt@usu.edu>2023-01-31 19:07:47 -0700
commitb6d4f7044fa9bec32489d0ca5c3392e76ad2c1bc (patch)
treee85b1cb72f437c901f16fa2810ab43d4b62ee9eb /lib/chessh
parentce5f598331b2be3be08cf697a59e8629cc69fe07 (diff)
downloadchessh-b6d4f7044fa9bec32489d0ca5c3392e76ad2c1bc.tar.gz
chessh-b6d4f7044fa9bec32489d0ca5c3392e76ad2c1bc.zip
Elixir cluster!
Diffstat (limited to 'lib/chessh')
-rw-r--r--lib/chessh/application.ex4
1 files changed, 3 insertions, 1 deletions
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]