2019 rebar3 . , , rebar.config, rebar3 . , hackney ( http) rebar.config:
{erl_opts, [debug_info]}.
{deps, [
{hackney, ".*", {git, "git://github.com/benoitc/hackney.git", {branch, "master"}}}
]}.
{shell, [
% {config, "config/sys.config"},
{apps, [http_client]}
]}.
:
../your_app_name$ rebar3 compile
rebar3 hackney application.
, , :
src/your_app_name.app.src
,
{application, http_client,
[{description, "An OTP application"},
{vsn, "0.1.0"},
{registered, []},
{mod, {http_client_app, []}},
{applications,
[kernel,
stdlib,
hackney %%%<=========HERE
]},
{env,[]},
{modules, []},
{licenses, ["Apache 2.0"]},
{links, []}
]}.
.app :
_build/default/lib/your_app_name/ebin/your_app_name.app
, :
../your_app_name$ rebar3 shell
inets erlang, , inets rebar.config ( $ rebar3 compile). inets application :
src/your_app_name.app.src
rebar3 inets ( ), inets , inets , . , inets application, :
$ rebar3 shell
...
...
1> application:start(inets)
{error,{already_started,inets}}
inets inets .