feat(agent): supervisor boots reporter when config is present
This commit is contained in:
parent
3ae38f95a9
commit
bfe39e71e1
3 changed files with 35 additions and 11 deletions
7
agent/config/config.exs
Normal file
7
agent/config/config.exs
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
import Config
|
||||
|
||||
config :logger, :default_formatter, format: "$time [$level] $message\n"
|
||||
|
||||
if File.exists?(Path.join([__DIR__, "#{config_env()}.exs"])) do
|
||||
import_config "#{config_env()}.exs"
|
||||
end
|
||||
5
agent/config/runtime.exs
Normal file
5
agent/config/runtime.exs
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
import Config
|
||||
|
||||
if path = System.get_env("AGENT_CONFIG") do
|
||||
config :agent, :config_path, path
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue