Skip to content

Commit

Permalink
Configure interactive mode when starting a release
Browse files Browse the repository at this point in the history
This was removed before because the implementation for multimethods no longer was using the erl-on-load* special form, but with the introduction of clojure.spec.alpha it is required to be able to run the expressions that define the specs when the namespace (i.e. module) is loaded.
  • Loading branch information
jfacorro committed Aug 29, 2021
1 parent 817b2c3 commit 07e5be5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ FROM alpine:3.9.4

COPY _build/prod/rel/try_clojerl /opt/try_clojerl

ENV CODE_LOADING_MODE interactive

RUN apk add --update ncurses openssl \
&& adduser -D -S -u 1000 clojerl \
&& mkdir -p /var/log/try_clojerl \
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ release: clean
@ rebar3 as prod do clojerl compile, clojerl release

start-release:
_build/prod/rel/try_clojerl/bin/try_clojerl console
CODE_LOADING_MODE=interactive _build/prod/rel/try_clojerl/bin/try_clojerl console

docker-build: clean
@ docker run -i \
Expand Down
2 changes: 2 additions & 0 deletions config/vm.args
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
-sname try_clojerl

-setcookie try_clojerl

-mode interactive

0 comments on commit 07e5be5

Please sign in to comment.