Guest User

Untitled

a guest
May 20th, 2018
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. defmodule DynamicSupervision.Application do
  2. @moduledoc false
  3. use Application
  4.  
  5. def start(_, _) do
  6. children = [
  7. %{
  8. id: Redix,
  9. start: {Redix, :start_link, ["redis://redis:6379/0", [name: :redis]]}
  10. },
  11. DynamicSupervision.DynamicSupervisor
  12. ]
  13.  
  14. Supervisor.start_link(children, strategy: :one_for_one)
  15. end
  16. end
Add Comment
Please, Sign In to add comment