Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- defmodule DynamicSupervision.Application do
- @moduledoc false
- use Application
- def start(_, _) do
- children = [
- %{
- id: Redix,
- start: {Redix, :start_link, ["redis://redis:6379/0", [name: :redis]]}
- },
- DynamicSupervision.DynamicSupervisor
- ]
- Supervisor.start_link(children, strategy: :one_for_one)
- end
- end
Add Comment
Please, Sign In to add comment