Skip to content

Instantly share code, notes, and snippets.

@FabienHenon
Created June 14, 2017 06:39
Show Gist options
  • Save FabienHenon/2537390a862ee68d9a44c8abd9942a35 to your computer and use it in GitHub Desktop.
Save FabienHenon/2537390a862ee68d9a44c8abd9942a35 to your computer and use it in GitHub Desktop.
defmodule RedisApp.Application do
use Application
def start(_type, _args) do
import Supervisor.Spec, warn: false
children = [
worker(RedisApp, [])
]
opts = [strategy: :one_for_one, name: RedisApp.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