Created
August 28, 2018 21:16
-
-
Save beerose/a904d2b18be8bc0a74c76d3707cea306 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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