From f01ab6cd29aaae39fef6a95ec8490223fb692499 Mon Sep 17 00:00:00 2001 From: Alexander Strizhakov Date: Tue, 21 Jan 2020 17:49:22 +0300 Subject: some refactor and tests --- config/releases.exs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'config') diff --git a/config/releases.exs b/config/releases.exs index 79651a342..19636765f 100644 --- a/config/releases.exs +++ b/config/releases.exs @@ -21,7 +21,10 @@ else IO.puts(warning) end -exported_config = Path.join([Path.dirname(config_path), "prod.exported_from_db.secret.exs"]) +exported_config = + config_path + |> Path.dirname() + |> Path.join("prod.exported_from_db.secret.exs") if File.exists?(exported_config) do import_config exported_config -- cgit v1.2.3