forked from benoitc/rcouch_template
/
reltool_embed.config
96 lines (85 loc) · 3.13 KB
/
reltool_embed.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
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
%% -*- tab-width: 4;erlang-indent-level: 4;indent-tabs-mode: nil -*-
%% ex: ft=erlang ts=4 sw=4 et
%%
{sys, [
{lib_dirs, ["../apps", "../deps", "../deps/refuge_spatial/apps",
"../deps/couch_core/apps"]},
{rel, "{{appid}}", "0.1",
[
kernel,
stdlib,
sasl,
public_key,
ssl,
os_mon,
crypto,
inets,
xmerl,
runtime_tools,
mochiweb,
ibrowse,
oauth,
jiffy,
snappy,
couch,
couch_httpd,
couch_index,
couch_mrview,
couch_changes,
couch_replicator,
vtree,
refuge_spatial,
couch_randomdoc,
{{appid}}
]},
{rel, "start_clean", "", [kernel, stdlib]},
{boot_rel, "{{appid}}"},
{profile, embedded},
{relocatable, true},
{app_file, strip},
{debug_info, strip},
{excl_sys_filters, ["^bin/.*", "^erts.*/bin/(dialyzer|typer)"]},
{excl_archive_filters, [".*"]},
{app, sasl, [{incl_cond, include}]},
{app, crypto, [{incl_cond, include}]},
{app, public_key, [{incl_cond, include}]},
{app, ssl, [{incl_cond, include}]},
{app, xmerl, [{incl_cond, include}]},
%% dependencies
{app, lager, [{incl_cond, include}]},
{app, mochiweb, [{incl_cond, include}]},
{app, oauth, [{incl_cond, include}]},
{app, jiffy, [{incl_cond, include}]},
{app, snappy, [{incl_cond, include}]},
{app, ibrowse, [{incl_cond, include}]},
%% couchdb
{app, couch, [{incl_cond, include}]},
{app, couch_httpd, [{incl_cond, include}]},
{app, couch_index, [{incl_cond, include}]},
{app, couch_mrview, [{incl_cond, include}]},
{app, couch_changes, [{incl_cond, include}]},
{app, couch_replicator, [{incl_cond, include}]},
{app, vtree, [{incl_cond, include}]},
{app, refuge_spatial, [{incl_cond, include}]},
{app, couch_randomdoc, [{incl_cond, include}]},
%% {{appid}}
{app, {{appid}}, [{incl_cond, include}]}
]}.
{target_dir, "{{appid}}"}.
{overlay_vars, "{{appid}}.config"}.
{overlay, [
{mkdir, "log"},
{mkdir, "run"},
{mkdir, "data"},
{copy, "files/erl", "{{erts_vsn}}/bin/erl"},
{template, "files/nodetool", "{{erts_vsn}}/bin/nodetool"},
{template, "files/{{appid}}", "bin/{{appid}}"},
{template, "files/app.config", "etc/app.config"},
{template, "files/vm.args", "etc/vm.args"},
{template, "files/default.ini", "etc/default.ini"},
{template, "files/local.ini", "etc/local.ini"},
{copy, "../deps/couch_core/apps/couch/share"},
{copy, "../deps/couch_core/apps/couch_httpd/share/www", "share/www"},
{copy, "../deps/couch_core/apps/couch/couchjs", "bin/couchjs"},
{copy, "files/refuge_logo.png", "share/www/image/logo.png"}
]}.