Explorar el Código

Use root dir when loading relx.config

pull/2435/head
Hakan Nilsson hace 4 años
padre
commit
7884a4b109
No se encontró ninguna clave conocida en la base de datos para esta firma ID de clave GPG: 3F273821A0C8B845
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. +2
    -1
      src/rebar_relx.erl

+ 2
- 1
src/rebar_relx.erl Ver fichero

@ -75,7 +75,8 @@ read_relx_config(State, Options) ->
ConfigFile = proplists:get_value(config, Options, []), ConfigFile = proplists:get_value(config, Options, []),
case ConfigFile of case ConfigFile of
"" -> "" ->
case {rebar_state:get(State, relx, []), file:consult("relx.config")} of
ConfigPath = filename:join([rebar_dir:root_dir(State), "relx.config"]),
case {rebar_state:get(State, relx, []), file:consult(ConfigPath)} of
{[], {ok, Config}} -> {[], {ok, Config}} ->
?DEBUG("Configuring releases with relx.config", []), ?DEBUG("Configuring releases with relx.config", []),
Config; Config;

Cargando…
Cancelar
Guardar