From 9cdfb6eb9cd30c4e06a7d9fef53e519983827d81 Mon Sep 17 00:00:00 2001 From: Simponic Date: Mon, 19 Dec 2022 01:37:10 -0700 Subject: Initial commit! --- lib/chessh/application.ex | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 lib/chessh/application.ex (limited to 'lib/chessh/application.ex') diff --git a/lib/chessh/application.ex b/lib/chessh/application.ex new file mode 100644 index 0000000..c760532 --- /dev/null +++ b/lib/chessh/application.ex @@ -0,0 +1,9 @@ +defmodule Chessh.Application do + use Application + + def start(_, _) do + children = [Chessh.Repo] + opts = [strategy: :one_for_one, name: Chessh.Supervisor] + Supervisor.start_link(children, opts) + end +end -- cgit v1.3