Skip to content

Instantly share code, notes, and snippets.

@beerose
Created August 28, 2018 21:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save beerose/a904d2b18be8bc0a74c76d3707cea306 to your computer and use it in GitHub Desktop.
Save beerose/a904d2b18be8bc0a74c76d3707cea306 to your computer and use it in GitHub Desktop.
defmodule ChattyApp do
use Application
def start(_type, _args) do
import Supervisor.Spec
children = [
supervisor(GRPC.Server.Supervisor, [{Chatty.ChatService.Server, 8080}]),
worker(Chatty.ChatState, []),
]
opts = [strategy: :one_for_one, name: ChattyApp]
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