Skip to content

Instantly share code, notes, and snippets.

@j-mcnally
Created September 14, 2014 05:34
Show Gist options
  • Save j-mcnally/f0278c57619b0abb0f4e to your computer and use it in GitHub Desktop.
Save j-mcnally/f0278c57619b0abb0f4e to your computer and use it in GitHub Desktop.
defmodule Koncur do
use Application
# See http://elixir-lang.org/docs/stable/elixir/Application.html
# for more information on OTP Applications
def start(_type, _args) do
import Supervisor.Spec, warn: false
children = [worker(Repo, [])]
opts = [strategy: :one_for_one, name: Koncur.Supervisor]
Supervisor.start_link(children, opts)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment