Skip to content

Commit b21886f

Browse files
committed
separate test config
1 parent e45066e commit b21886f

File tree

2 files changed

+20
-2
lines changed

2 files changed

+20
-2
lines changed

conf/test.config

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
[{webrtc_server, [
2+
{port, 8443},
3+
{hostname, <<"localhost">>},
4+
{certfile, <<"../../lib/webrtc_server/priv/certs/certificate.pem">>},
5+
{keyfile, <<"../../lib/webrtc_server/priv/certs/key.pem">>},
6+
{auth_fun, {example, authenticate}},
7+
{create_callback, {example, create}},
8+
{join_callback, {example, join}},
9+
{leave_callback, {example, leave}},
10+
{example_password, <<"password">>}
11+
]},
12+
{lager, [
13+
{handlers, [
14+
{lager_console_backend, [{level, debug}]},
15+
{lager_file_backend, [{file, "log/error.log"}, {level, error}]},
16+
{lager_file_backend, [{file, "log/console.log"}, {level, debug}]}]}
17+
]}
18+
19+
].

rebar.config

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,13 @@
1515
{sys_config, "conf/sys.config"}
1616
]}.
1717

18-
{ct_opts, [{sys_config, "conf/sys.config"}]}.
18+
{ct_opts, [{sys_config, "conf/test.config"}]}.
1919

2020
{profiles, [
2121
{test, [
2222
{deps, [
2323
{websocket_client, {git, "https://github.com/jeremyong/websocket_client.git", {ref, "9a6f65d"}}}
2424
]},
2525
{erl_opts, [nowarn_export_all]}
26-
2726
]}
2827
]}.

0 commit comments

Comments
 (0)