gen_server:start_link({local, ?SERVER}, ?MODULE, [], [{debug,[trace]}])
{deps, [
{webmachine, "1.9.0", {git, "https://github.com/basho/webmachine.git", {tag,"1.9.0"}}}
]}.
- ./rebar create-app appid=xxx
- ./rebar create template=simplemod modid=xxx
- ./rebar create template=simplesrv srvid=xxx_serve
mkdir rel
cd rel
../rebar create-node nodeid=ememcached
../rebar generate
see: https://github.com/basho/rebar/tree/master/priv/templates
Dialyzer is a static analysis tool that identifies software discrepancies such as type errors, unreachable code, unnecessary tests, etc in single Erlang modules or entire (sets of) applications.
dialyzer --build_plt --apps erts kernel stdlib
dialyzer --add_to_plt --apps mnesia
dialyzer --src src/*.erl
TypEr is a tool that automatically inserts type annotations in Erlang code.
typer -I include src/*.erl
typer --annotate -I include src/*.erl