Skip to content

Instantly share code, notes, and snippets.

@abadongutierrez
Created August 29, 2016 06:13
Show Gist options
  • Save abadongutierrez/4f51240eb283e538b65836e969215a58 to your computer and use it in GitHub Desktop.
Save abadongutierrez/4f51240eb283e538b65836e969215a58 to your computer and use it in GitHub Desktop.
def start(_type, _args) do
import Supervisor.Spec, warn: false
# Define workers and child supervisors to be supervised
children = [supervisor(EctoTest.Repo, [])]
# See http://elixir-lang.org/docs/stable/elixir/Supervisor.html
# for other strategies and supported options
opts = [strategy: :one_for_one, name: EctoTest.Supervisor]
Supervisor.start_link(children, opts)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment