forked from smeevil/cloudex
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(*): Introduce application to have a supervisor as the first process
Closes smeevil#68
- Loading branch information
Berni
committed
Oct 7, 2020
1 parent
547f78e
commit eaedd08
Showing
3 changed files
with
25 additions
and
12 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
defmodule Cloudex.Application do | ||
@moduledoc false | ||
use Application | ||
|
||
@impl true | ||
def start(_type, args \\ []) do | ||
children = [{Cloudex.Settings, args}] | ||
|
||
opts = [strategy: :one_for_one, name: MessagePipeline.Supervisor] | ||
Supervisor.start_link(children, opts) | ||
end | ||
end |
This file contains 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
This file contains 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