forking from https://gitea.daggertrout.com/mcdoh/ExMineArchive
This commit is contained in:
18
lib/ex_mine/application.ex
Normal file
18
lib/ex_mine/application.ex
Normal file
@@ -0,0 +1,18 @@
|
||||
defmodule ExMine.Application do
|
||||
use Application
|
||||
|
||||
def start(_type, _args) do
|
||||
import Supervisor.Spec
|
||||
|
||||
children = [
|
||||
worker(ExMine.Server, [])
|
||||
]
|
||||
|
||||
options = [
|
||||
name: ExMine.Supervisor,
|
||||
strategy: :simple_one_for_one,
|
||||
]
|
||||
|
||||
Supervisor.start_link(children, options)
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user