diff options
author | Linus Nordberg <linus@nordberg.se> | 2014-09-25 15:54:00 +0200 |
---|---|---|
committer | Linus Nordberg <linus@nordberg.se> | 2014-09-25 15:54:00 +0200 |
commit | db20ffa6cfa1c6982475f9748690f85fa8ea112d (patch) | |
tree | be2df328fb6e6fb66c0c2d2e0e70def6b9a3539f | |
parent | 4899f85a4bfe73d166667348ffef77312ca85751 (diff) | |
parent | 1cd525c5c710ad067a8d11a0d665e14665b5be3e (diff) |
Merge remote-tracking branch 'refs/remotes/map/releasemanagement3' into master-origin
-rw-r--r-- | Makefile | 1 | ||||
-rw-r--r-- | README.md | 20 | ||||
-rw-r--r-- | src/catlfish_app.erl | 2 |
3 files changed, 9 insertions, 14 deletions
@@ -10,5 +10,6 @@ release: ln -s ../../plop/Mnesia.nonode@nohost .; \ ln -s ../../plop/test .) cp httpd_props.conf rel + cp catlfish.config rel mkdir rel/catlfish cp -r webroot rel/catlfish @@ -4,29 +4,25 @@ catlfish is a Certificate Transparency log server (RFC 6962). # Compile - $ erl -make + $ CTROOT=.. make + $ make release # Requirements -A running plop application, which in turn requires mnesia to be -running. +A compiled plop application in ../plop -jiffie for JSON encoding and decoding. +A compiled https://github.com/davisp/jiffy (for JSON encoding and decoding) in ../jiffy # Start -NOTE: Kludge ahead! catlfish will turn into a proper OTP application -at some point in the future. +Make sure plop has a database. See `plop/README`. Then run catlfish: -Make sure mnesia and plop are running and that plop has been -installed, i.e. has a database. See `plop/README`. You might also want -to `code:add_pathz("path/to/plop/ebin")`. - - 1> inets:start(httpd, [{proplist_file, "httpd_props.conf"}]). + $ (cd rel ; bin/erl -config catlfish) # Logs and traces -As configured in httpd_props.conf, logs can be found in webroot/log/. +As configured in httpd_props.conf, logs can be found in +catlfish/webroot/log in the rel directory. To enable a crazy amount of tracing information from inets, do diff --git a/src/catlfish_app.erl b/src/catlfish_app.erl index 9c9bdad..7e26243 100644 --- a/src/catlfish_app.erl +++ b/src/catlfish_app.erl @@ -18,8 +18,6 @@ dummy() -> start(_StartType, _StartArgs) -> io:format("starting catlfish~n", []), - InetsResult = inets:start(httpd, [{proplist_file, "httpd_props.conf"}]), - io:format("catlfish: tried to start inets service: ~p~n", [InetsResult]), Pid = spawn(fun () -> dummy() end), |