From 07e311bc476b94d17d78d19061690cf0bfdea92c Mon Sep 17 00:00:00 2001 From: MattiasW Date: Fri, 8 May 2015 17:04:58 +0200 Subject: [PATCH] make relx work --- .edts | 4 ++-- rebar.config | 2 +- release/sys.config | 5 +++++ src/terl.app.src | 5 ++++- src/terl_app.erl | 6 +++--- 5 files changed, 15 insertions(+), 7 deletions(-) create mode 100644 release/sys.config diff --git a/.edts b/.edts index f8c9559..407b0dd 100644 --- a/.edts +++ b/.edts @@ -1,5 +1,5 @@ -:name "terl" -:node-sname "terl" +:name "edtsterl" +:node-sname "edtsterl" :lib-dirs '("deps") :app-include-dirs '("include") :project-include-dirs '("include") diff --git a/rebar.config b/rebar.config index 9e00d8e..268e008 100644 --- a/rebar.config +++ b/rebar.config @@ -25,7 +25,7 @@ {deps,[ %% triq, alt to eqc and proper: https://github.com/krestenkrab/triq - {eqc, ".*", {git, "git://github.com/rpt/eqcmini.git"}}, + %% {eqc, ".*", {git, "git://github.com/rpt/eqcmini.git"}}, %% {cowboy, ".*", {git, "git://github.com/extend/cowboy", {tag,"0.9.0"}}}, %% {gproc, ".*", {git, "git://github.com/uwiger/gproc.git", {tag,"0.3"}}}, %% {erlydtl, ".*", {git, "git://github.com/evanmiller/erlydtl.git", {tag,"0.8.0"}}} diff --git a/release/sys.config b/release/sys.config new file mode 100644 index 0000000..8acce23 --- /dev/null +++ b/release/sys.config @@ -0,0 +1,5 @@ +%%% -*- mode:erlang -*- +%%% Warning - this config file *must* end with + +[ +]. diff --git a/src/terl.app.src b/src/terl.app.src index 4ad003a..55b2373 100644 --- a/src/terl.app.src +++ b/src/terl.app.src @@ -8,7 +8,10 @@ {applications, [ kernel, stdlib, - compiler + compiler, + lager, + sync, + eper ]}, {mod, { terl_app, []}}, {env, []} diff --git a/src/terl_app.erl b/src/terl_app.erl index 2cf1a0b..8eb2663 100644 --- a/src/terl_app.erl +++ b/src/terl_app.erl @@ -14,10 +14,10 @@ -spec start(_,_) -> {'error',_} | {'ok',pid()}. %| {'ok',pid(),_}. start(_StartType, _StartArgs) -> lager:start(), - edts_log:info("terl started"), - shc_sup:start_link(). + lager:info("terl started",[]), + terl_sup:start_link(). -spec stop(_) -> 'ok'. stop(_State) -> - edts_log:info("terl stopped"), + lager:info("terl stopped",[]), ok.