From 983ed9d0e8da15cb8c304fea62c25d3b053e712b Mon Sep 17 00:00:00 2001 From: nsensfel Date: Tue, 5 Jun 2018 14:33:27 +0200 Subject: Has the DB run as a separate node. I am still figuring out how Erlang handles node connections... It would seem that spawn(NODE, ...) automatically initiates the connection to NODE (i.e. no need to use net_kernel:connect_node before). --- src/db/Makefile | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/db/Makefile') diff --git a/src/db/Makefile b/src/db/Makefile index d7b6eed..206a332 100644 --- a/src/db/Makefile +++ b/src/db/Makefile @@ -17,6 +17,13 @@ INCLUDE_DIR ?= ${CURDIR}/include ## Binaries ERLC ?= erlc ERLC_OPTS ?= +ERL ?= erl +ERL_OPTS ?= \ + -connect_all false \ + -name db_node \ + -pa $(BIN_DIR) \ + -run db_node start + DIALYZER ?= dialyzer ################################################################################ @@ -52,6 +59,7 @@ debug: debug_run build: $(REQUIRED_HEADERS) $(PREPROCESSOR_RESULT) $(ERLANG_RESULT) run: + $(ERL) $(ERL_OPTS) clean: rm -rf $(PREPROCESSOR_RESULT) $(ERLANG_RESULT) -- cgit v1.2.3-70-g09d2