From 45af3bf634d8c87d6ef162e1d25ad960b3c7c659 Mon Sep 17 00:00:00 2001 From: Linus Nordberg Date: Thu, 1 May 2014 17:59:57 +0200 Subject: More in README. --- README | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/README b/README index b7fcae4..5689b44 100644 --- a/README +++ b/README @@ -12,8 +12,23 @@ Compile the application Start the application locally - $ erl -boot start_sasl -pa ebin -eval "application:start(plop)." -plop Keyfile "src/test/rsakey.pem" -plop Passphrase "sikrit" + Very first time, before there is a database: + $ erl -boot start_sasl -pa ebin -eval "plop_app:install([node()])." + There should now exist a directory Mnesia.nonode@nohost/ with four + files in it. + + Start the application: + $ erl -boot start_sasl -pa ebin \ + -eval "mnesia:start(), application:start(plop)." + + FIXME: mnesia isn't starting automagically, why? + TODO: -plop Keyfile "test/rsakey.pem" -plop Passphrase "sikrit" Test the application [FIXME] + +Debugging + + Dump the database to a file: + 1> db:dump_to_file("dump.txt"). -- cgit v1.1