소스 검색

Fix config loading in shell

Config files from the command line would expect the wrong format:

    {app1, [...]}.
    {app2, [...]}.

Instead of the correct sys.config format:

    [{app1, [...]},
     {app2, [...]}]

Not supported yet: the recursive file references documented in
http://www.erlang.org/doc/man/config.html
pull/473/head
Fred Hebert 10 년 전
부모
커밋
30847ec661
1개의 변경된 파일4개의 추가작업 그리고 1개의 파일을 삭제
  1. +4
    -1
      src/rebar_prv_shell.erl

+ 4
- 1
src/rebar_prv_shell.erl 파일 보기

@ -237,4 +237,7 @@ find_config_relx(State) ->
consult_config(State, Filename) ->
Fullpath = filename:join(rebar_dir:root_dir(State), Filename),
?DEBUG("Loading configuration from ~p", [Fullpath]),
rebar_file_utils:try_consult(Fullpath).
case rebar_file_utils:try_consult(Fullpath) of
[T] -> T;
[] -> []
end.

불러오는 중...
취소
저장