Skip to content

Instantly share code, notes, and snippets.

@meh
Forked from mattdeboard/dexter.ex
Created August 21, 2014 01:03
Show Gist options
  • Save meh/4079c45a1050a649d75b to your computer and use it in GitHub Desktop.
Save meh/4079c45a1050a649d75b to your computer and use it in GitHub Desktop.
defmodule Dexter do
use Application
@port 7400
def start(_, port \\ @port) do
import Supervisor.Spec, warn: false
children = [
worker(Reagent, [Dexter.Server, [port: port]], [])
]
# See http://elixir-lang.org/docs/stable/elixir/Supervisor.html
# for other strategies and supported options
opts = [strategy: :one_for_one, name: Dexter.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