summaryrefslogtreecommitdiff
path: root/lib/chessh/application.ex
diff options
context:
space:
mode:
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