Rename OMNIBOT_CFG env variable to OMNIBOT_CONFIG

Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
This commit is contained in:
2020-08-18 15:17:12 -07:00
parent fe0fb59977
commit 5742bf52e2

View File

@@ -11,7 +11,7 @@ defmodule Omnibot.Supervisor do
@impl true @impl true
def init(:ok) do def init(:ok) do
cfg = System.get_env("OMNIBOT_CFG", "omnibot.exs") |> Config.load() cfg = System.get_env("OMNIBOT_CONFIG", "omnibot.exs") |> Config.load()
# TODO : move cfg to its own process so reloading it is as simple as killing the process # TODO : move cfg to its own process so reloading it is as simple as killing the process
children = [ children = [