-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrebar.config
49 lines (41 loc) · 1.6 KB
/
rebar.config
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
%% -*- mode: erlang;erlang-indent-level: 4;indent-tabs-mode: nil -*-
{erl_opts, [debug_info]}.
{src_dirs, ["src", "src/controllers"]}.
{shell, [{config, "./config/dev_sys.config.src"}]}.
{erlydtl_opts, [{doc_root, "src/views"},
{recursive, true},
{libraries, [
{nova_erlydtl_inventory, nova_erlydtl_inventory}
]},
{default_libraries, [nova_erlydtl_inventory]}
]}.
{deps, [
nova,
{flatlog, "0.1.2"},
{eredis,{git,"https://github.com/wooga/eredis.git",{branch,"master"}}} %% Used for logging - Change if needed
]}.
%% Release profiles
%% To create a release just run
%% rebar3 as prod release
{relx, [{release, {fcourse, "0.1.0"},
[fcourse,
sasl]},
{mode, dev},
{sys_config_src, "./config/dev_sys.config.src"},
{vm_args_src, "./config/vm.args.src"}
]}.
{profiles, [{prod, [{relx,
[{mode, prod},
{sys_config_src, "./config/prod_sys.config.src"}]}]}]}.
%% Plugins for rebar3
{plugins, [
{rebar3_erlydtl_plugin, ".*",
{git, "https://github.com/tsloughter/rebar3_erlydtl_plugin.git", {branch, "master"}}},
{rebar3_erldb_plugin, ".*",
{git, "https://github.com/erldb/rebar3_erldb_plugin.git", {branch, "master"}}},
{rebar3_nova, ".*",
{git, "https://github.com/novaframework/rebar3_nova.git", {branch, "master"}}}
]}.
{provider_hooks, [
{pre, [{compile, {erlydtl, compile}}]}
]}.