diff --git a/lib/envy.ex b/lib/envy.ex index d27a46a..9b7492f 100644 --- a/lib/envy.ex +++ b/lib/envy.ex @@ -51,7 +51,9 @@ defmodule Envy do access to dependencies. """ def reload_config do - Mix.Config.read!("config/config.exs") |> Mix.Config.persist + Mix.Project.config()[:config_path] + |> Mix.Config.read!() + |> Mix.Config.persist end @doc """ diff --git a/mix.lock b/mix.lock index 48267c8..0464c4e 100644 --- a/mix.lock +++ b/mix.lock @@ -1,2 +1,4 @@ -%{"earmark": {:hex, :earmark, "0.1.19", "ffec54f520a11b711532c23d8a52b75a74c09697062d10613fa2dbdf8a9db36e", [:mix], []}, - "ex_doc": {:hex, :ex_doc, "0.10.0", "f49c237250b829df986486b38f043e6f8e19d19b41101987f7214543f75947ec", [:mix], [{:earmark, "~> 0.1.17 or ~> 0.2", [hex: :earmark, optional: true]}]}} +%{ + "earmark": {:hex, :earmark, "0.1.19", "ffec54f520a11b711532c23d8a52b75a74c09697062d10613fa2dbdf8a9db36e", [:mix], [], "hexpm", "db85f989ba3030d40d3a901d7eebbf926ee07355bf6113d730b8aaf9404a6bd7"}, + "ex_doc": {:hex, :ex_doc, "0.10.0", "f49c237250b829df986486b38f043e6f8e19d19b41101987f7214543f75947ec", [:mix], [{:earmark, "~> 0.1.17 or ~> 0.2", [hex: :earmark, repo: "hexpm", optional: true]}], "hexpm", "3d9f15777aa3fb62700d5984eb09ceeb6c1574d61be0f70801e3390e36942b35"}, +}