Go Back

0 defmodule Gmichat.App do

1 use Application

2

3 def start(_type, _args) do

4 children = [

5 Gmichat.Repo,

6 ]

7 opts = [strategy: :one_for_one, name: Friends.Supervisor]

8 Supervisor.start_link(children, opts)

9 Gmichat.start()

10 Supervisor.start_link [], strategy: :one_for_one

11 end

12 end

13