48 lines
1.7 KiB
Erlang
48 lines
1.7 KiB
Erlang
{erl_opts, [debug_info]}.
|
|
{deps, [
|
|
{sync, ".*", {git, "https://github.com/rustyio/sync.git", {branch, "master"}}},
|
|
{jiffy, ".*", {git, "https://github.com/davisp/jiffy.git", {tag, "1.1.2"}}},
|
|
{cowboy, ".*", {git, "https://github.com/ninenines/cowboy.git", {tag, "2.10.0"}}},
|
|
{gun, ".*", {git, "https://github.com/ninenines/gun.git", {tag, "2.2.0"}}},
|
|
{parse_trans, ".*", {git, "https://github.com/uwiger/parse_trans", {tag, "3.0.0"}}},
|
|
{lager, ".*", {git,"https://github.com/erlang-lager/lager.git", {tag, "3.9.2"}}}
|
|
]}.
|
|
|
|
{relx, [{release, {efka, "0.1.0"},
|
|
[efka,
|
|
sasl]},
|
|
|
|
{mode, dev},
|
|
|
|
%% automatically picked up if the files
|
|
%% exist but can be set manually, which
|
|
%% is required if the names aren't exactly
|
|
%% sys.config and vm.args
|
|
{sys_config, "./config/sys.config"},
|
|
{vm_args, "./config/vm.args"}
|
|
|
|
%% the .src form of the configuration files do
|
|
%% not require setting RELX_REPLACE_OS_VARS
|
|
%% {sys_config_src, "./config/sys.config.src"},
|
|
%% {vm_args_src, "./config/vm.args.src"}
|
|
]}.
|
|
|
|
{profiles, [{prod, [{relx,
|
|
[%% prod is the default mode when prod
|
|
%% profile is used, so does not have
|
|
%% to be explicitly included like this
|
|
{mode, prod}
|
|
|
|
%% use minimal mode to exclude ERTS
|
|
%% {mode, minimal}
|
|
]
|
|
}]}]}.
|
|
|
|
{project_plugins, [
|
|
%% 或从 Git 仓库拉取最新版本
|
|
{pc, {git, "https://github.com/blt/port_compiler.git", {tag, "v1.15.0"}}}
|
|
]}.
|
|
|
|
{erl_opts, [{parse_transform,lager_transform}]}.
|
|
|
|
{rebar_packages_cdn, "https://hexpm.upyun.com"}. |