Skip to content

Commit 5cebd0b

Browse files
committed
Use Nerves.Runtime.mix_target() for child selection
The previous `target()` function generated was removed in c70df68 and this updates the generated `application.ex` to use the expected `Nerves.Runtime.mix_target/0` for selectively choosing children to start in the supervisor
1 parent 9e96dba commit 5cebd0b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/new/lib/app_name/application.ex

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ defmodule <%= app_module %>.Application do
1212
# Children for all targets
1313
# Starts a worker by calling: <%= app_module %>.Worker.start_link(arg)
1414
# {<%= app_module %>.Worker, arg},
15-
] ++ children(target())
15+
] ++ children(Nerves.Runtime.mix_target())
1616

1717
# See https://hexdocs.pm/elixir/Supervisor.html
1818
# for other strategies and supported options

0 commit comments

Comments
 (0)