소스 검색

remove warning when booting applications in the shell

This warning is emitted every single time one starts a shell with applications
configured for automatic startup (e.g. `{shell, [{apps, [cowboy]}]}`).

Infortunately it does not make any sense: people who use this feature need it
to interact with their application or library during development, and are
therefore subjected to the warning every single time they start the shell even
though this is the right way to use it.

While the shell is not to be used to run applications in productions, those
who do it won't be stopped by a warning.

Ultimately, the warning annoys people who use the feature as intended, and do
nothing to stop people who abuse it. Thus I believe it should be removed.

See https://github.com/erlang/rebar3/issues/2206.

close #2206
pull/2207/head
Nicolas Martyanoff 5 년 전
부모
커밋
f9250a4e98
1개의 변경된 파일0개의 추가작업 그리고 3개의 파일을 삭제
  1. +0
    -3
      src/rebar_prv_shell.erl

+ 0
- 3
src/rebar_prv_shell.erl 파일 보기

@ -440,9 +440,6 @@ reread_config(AppsToStart, State) ->
end.
boot_apps(Apps) ->
?WARN("The rebar3 shell is a development tool; to deploy "
"applications in production, consider using releases "
"(http://www.rebar3.org/docs/releases)", []),
Normalized = normalize_boot_apps(Apps),
Res = [application:ensure_all_started(App) || App <- Normalized],
_ = [?INFO("Booted ~p", [App])

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