Last active
August 29, 2015 14:05
-
-
Save mattdeboard/54d3004860471a177d8d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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