File tree Expand file tree Collapse file tree 5 files changed +8
-21
lines changed
app_name_web/lib/app_name Expand file tree Collapse file tree 5 files changed +8
-21
lines changed Original file line number Diff line number Diff line change @@ -49,16 +49,10 @@ The `lib/hello/application.ex` file defines an Elixir application named `Hello.A
49
49
50
50
``` elixir
51
51
children = [
52
- # Start the Telemetry supervisor
53
52
HelloWeb .Telemetry ,
54
- # Start the Ecto repository
55
53
Hello .Repo ,
56
- # Start the PubSub system
57
54
{Phoenix .PubSub , name: Hello .PubSub },
58
- # Start the Endpoint (http/https)
59
55
HelloWeb .Endpoint
60
- # Start a worker by calling: Hello.Worker.start_link(arg)
61
- # {Hello.Worker, arg}
62
56
]
63
57
```
64
58
Original file line number Diff line number Diff line change @@ -599,7 +599,6 @@ We certainly should follow the instructions and add our new repo to our supervis
599
599
``` elixir
600
600
. . .
601
601
children = [
602
- # Start the Ecto repository
603
602
Hello .Repo ,
604
603
# Our custom repo
605
604
OurCustom .Repo ,
Original file line number Diff line number Diff line change @@ -8,18 +8,15 @@ defmodule <%= @app_module %>.Application do
8
8
@ impl true
9
9
def start ( _type , _args ) do
10
10
children = [
11
- # Start the Telemetry supervisor
12
11
< % = @web_namespace % > .Telemetry, <% = if @ ecto do % >
13
- # Start the Ecto repository
14
12
<% = @app_module % > .Repo, <% end % >
15
- # Start the PubSub system
16
13
{ Phoenix.PubSub , name: < % = @app_module % > .PubSub} , <% = if @ mailer do % >
17
- # Start Finch
14
+ # Start the Finch HTTP client for sending emails
18
15
{ Finch , name: < % = @app_module % > .Finch} , <% end % >
19
- # Start the Endpoint (http/https)
20
- <% = @endpoint_module % >
21
16
# Start a worker by calling: <%= @app_module %>.Worker.start_link(arg)
22
- # {<%= @app_module %>.Worker, arg}
17
+ # {<%= @app_module %>.Worker, arg},
18
+ # Start to serve requests, typically the last entry
19
+ <% = @endpoint_module % >
23
20
]
24
21
25
22
# See https://hexdocs.pm/elixir/Supervisor.html
Original file line number Diff line number Diff line change @@ -8,11 +8,9 @@ defmodule <%= @app_module %>.Application do
8
8
@ impl true
9
9
def start ( _type , _args ) do
10
10
children = [ < % = if @ ecto do % >
11
- # Start the Ecto repository
12
11
<% = @app_module % > .Repo, <% end % >
13
- # Start the PubSub system
14
12
{ Phoenix.PubSub , name: < % = @app_module % > .PubSub} <% = if @ mailer do % > ,
15
- # Start Finch
13
+ # Start the Finch HTTP client for sending emails
16
14
{ Finch , name: < % = @app_module % > .Finch} <% end % >
17
15
# Start a worker by calling: <%= @app_module %>.Worker.start_link(arg)
18
16
# {<%= @app_module %>.Worker, arg}
Original file line number Diff line number Diff line change @@ -8,12 +8,11 @@ defmodule <%= @web_namespace %>.Application do
8
8
@ impl true
9
9
def start ( _type , _args ) do
10
10
children = [
11
- # Start the Telemetry supervisor
12
11
< % = @web_namespace % > .Telemetry,
13
- # Start the Endpoint (http/https)
14
- < % = @endpoint_module % >
15
12
# Start a worker by calling: <%= @web_namespace %>.Worker.start_link(arg)
16
- # {<%= @web_namespace %>.Worker, arg}
13
+ # {<%= @web_namespace %>.Worker, arg},
14
+ # Start to serve requests, typically the last entry
15
+ < % = @endpoint_module % >
17
16
]
18
17
19
18
# See https://hexdocs.pm/elixir/Supervisor.html
You can’t perform that action at this time.
0 commit comments