This repository has been archived by the owner on Oct 30, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
rebar.config.script
100 lines (86 loc) · 1.94 KB
/
rebar.config.script
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
%% Environment
Env = [{arizona, [
{app, arizona},
{server, #{
adapter => arizona_server_adapter_cowboy,
args => #{
url => #{
schema => http,
ip => {127, 0, 0, 1},
port => 8080
}
}
}},
{router, #{
adapter => arizona_web_router_example,
args => #{
% nothing here yet!
}
}},
{template, #{
adapter => arizona_template_adapter_eel,
args => #{
% engine => @todo
}
}},
{json, #{
adapter => arizona_json_adapter_euneus,
args => #{
% nothing here yet!
}
}}
]}],
application:set_env(Env),
%% Config
[
{erl_opts, [
debug_info
]},
{deps, [
%% Owner
% Template compiler.
{eel, { git
, "https://github.com/williamthome/eel"
, {branch, "spawnfest"}} },
% JSON parser and generator.
{euneus, "0.3.0"},
%% Third-party
% Server.
{cowboy, "2.10.0"}
]},
{dialyzer, [
{plt_extra_apps, [cowboy]}
]},
{profiles, [
{dev, [
{deps, [
%% Third-party
% Hot code reload. Used by the '$ make daemon' command.
{sync, ".*", { git
, "https://github.com/rustyio/sync.git"
, {branch, "master"}} }
]}
]},
{prod, [
{erl_opts, [
no_debug_info,
warnings_as_errors
]},
{relx, [
{dev_mode, false},
{include_erts, true}
]}
]},
{test, [
% nothing here yet!
]}
]},
{relx, [
{dev_mode, true},
{include_erts, false}
]},
{shell, [
% {config, "config/sys.config"},
{apps, [arizona]}
]}
].