diff options
author | Logan Hunt <logan.hunt@usu.edu> | 2023-01-31 19:05:01 -0700 |
---|---|---|
committer | Logan Hunt <logan.hunt@usu.edu> | 2023-01-31 19:07:47 -0700 |
commit | b6d4f7044fa9bec32489d0ca5c3392e76ad2c1bc (patch) | |
tree | e85b1cb72f437c901f16fa2810ab43d4b62ee9eb /lib/chessh | |
parent | ce5f598331b2be3be08cf697a59e8629cc69fe07 (diff) | |
download | chessh-b6d4f7044fa9bec32489d0ca5c3392e76ad2c1bc.tar.gz chessh-b6d4f7044fa9bec32489d0ca5c3392e76ad2c1bc.zip |
Elixir cluster!
Diffstat (limited to 'lib/chessh')
-rw-r--r-- | lib/chessh/application.ex | 4 |
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] |