Current section
Files
Jump to
Current section
Files
lib/blackbook.ex
defmodule Blackbook do
use Application
def start do
Blackbook.start :normail, []
end
def start(_type, _args) do
import Supervisor.Spec
tree = [worker(Blackbook.Repo, [])]
opts = [name: Blackbook.Sup, strategy: :one_for_one]
Supervisor.start_link(tree, opts)
end
end