diff --git a/lib/exrm/utils.ex b/lib/exrm/utils.ex index a64fdea..e09e35a 100644 --- a/lib/exrm/utils.ex +++ b/lib/exrm/utils.ex @@ -54,7 +54,7 @@ defmodule ReleaseManager.Utils do def relx(name, version, verbosity, upgrade?, dev) do # Setup paths config = rel_file_dest_path "relx.config" - output_dir = @relx_output_path + output_dir = @relx_output_path |> Path.expand # Determine whether to pass --dev-mode or not dev_mode? = case dev do true -> "--dev-mode" diff --git a/lib/mix/tasks/release.ex b/lib/mix/tasks/release.ex index 1dd1722..264ff90 100644 --- a/lib/mix/tasks/release.ex +++ b/lib/mix/tasks/release.ex @@ -111,11 +111,11 @@ defmodule Mix.Tasks.Release do lib_dirs = case Mix.Project.config |> Keyword.get(:umbrella?, false) do true -> [ elixir_path, - '../../_build/prod', - '../../#{Mix.Project.config |> Keyword.get(:deps_path) |> String.to_char_list}' ] + '#{"_build/prod" |> Path.expand}', + '#{Mix.Project.Config |> Keyword.get(:deps_path) |> Path.expand}' ] _ -> [ elixir_path, - '../../_build/prod' ] + '#{"_build/prod" |> Path.expand}' ] end # Build release configuration relx_config = relx_config