feat(agent): supervisor boots reporter when config is present

This commit is contained in:
Carsten 2026-04-21 22:09:29 +02:00
parent 3ae38f95a9
commit bfe39e71e1
3 changed files with 35 additions and 11 deletions

7
agent/config/config.exs Normal file
View 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
View file

@ -0,0 +1,5 @@
import Config
if path = System.get_env("AGENT_CONFIG") do
config :agent, :config_path, path
end