Skip to content

Commit

Permalink
Issue #139: Document the direct database access
Browse files Browse the repository at this point in the history
  • Loading branch information
gotthardp committed Jul 5, 2017
1 parent 00dce1b commit 2f40938
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions doc/Development.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,16 +43,16 @@ lager:warning("unexpected value: ~w", [Value])

### Connections to the lorawan node

The lorawan-server is started in a cluster node `lorawan@<hostname>`. For example,
if your `hostname` is `debian.home`, the server runs on `lorawan@debian`.
The lorawan-server is started as a cluster node `lorawan@<hostname>`, where
`<hostname>` is a short hostname of the machine hosting the server. For example,
if `hostname --short` returns `debian`, the server runs as a node `lorawan@debian`.

You can call functions on another node by `rpc:call(Node, Module, Function, Args)`.
You can connect to a running lorawan-server by `erl -sname test -remsh lorawan@<hostname>`.
Once connected you can e.g. use the [Mnesia functions](http://erlang.org/doc/man/mnesia.html)
to directly access the server database.

You can setup a connection to another node by `net_adm:ping(Node)` and then
interact with its processes.

Or you can start the [Observer](http://erlang.org/doc/apps/observer/observer_ug.html)
and just trace the lorawan-server processes and activities.
Advanced users can also start the [Observer](http://erlang.org/doc/apps/observer/observer_ug.html)
and trace the lorawan-server processes and activities:

```bash
erl -smp -sname observer -hidden -setcookie MyCookie -run observer
Expand Down

0 comments on commit 2f40938

Please sign in to comment.