Skip to content

Instantly share code, notes, and snippets.

@KamilLelonek
Last active September 18, 2018 23:06
Show Gist options
  • Save KamilLelonek/659195d4371796d299675d6ab7b18d48 to your computer and use it in GitHub Desktop.
Save KamilLelonek/659195d4371796d299675d6ab7b18d48 to your computer and use it in GitHub Desktop.
defmodule PostgresPubSub.Application do
use Application
def start(_type, _args),
do: Supervisor.start_link(children(), opts())
defp children do
[
PostgresPubSub.Repo
]
end
defp opts do
[
strategy: :one_for_one,
name: PostgresPubSub.Supervisor
]
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment