This commit is contained in:
15
lib/provider_service/application.ex
Normal file
15
lib/provider_service/application.ex
Normal file
@@ -0,0 +1,15 @@
|
||||
defmodule ProviderService.Application do
|
||||
use Application
|
||||
|
||||
def start(_type, _args) do
|
||||
children = [
|
||||
ProviderService.Repo,
|
||||
ProviderService.CommandedApp,
|
||||
ProviderService.Projections.ProviderProjection,
|
||||
ProviderServiceWeb.Endpoint
|
||||
]
|
||||
|
||||
opts = [strategy: :one_for_one, name: ProviderService.Supervisor]
|
||||
Supervisor.start_link(children, opts)
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user