summaryrefslogtreecommitdiff
path: root/lib/chessh/application.ex
diff options
context:
space:
mode:
authorSimponic <loganhunt@simponic.xyz>2022-12-19 01:37:10 -0700
committerSimponic <loganhunt@simponic.xyz>2022-12-19 01:39:10 -0700
commit9cdfb6eb9cd30c4e06a7d9fef53e519983827d81 (patch)
tree4622a1809df6a6424f1b5f9f10c72dd02f9fc176 /lib/chessh/application.ex
downloadchessh-9cdfb6eb9cd30c4e06a7d9fef53e519983827d81.tar.gz
chessh-9cdfb6eb9cd30c4e06a7d9fef53e519983827d81.zip
Initial commit!
Diffstat (limited to 'lib/chessh/application.ex')
-rw-r--r--lib/chessh/application.ex9
1 files changed, 9 insertions, 0 deletions
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