Skip to content

Commit

Permalink
allow specify code loading mode through CODE_LOADING_MODE variable
Browse files Browse the repository at this point in the history
  • Loading branch information
velimir committed Dec 22, 2018
1 parent cd2957e commit c097f47
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion priv/bin
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ RELEASE_ROOT_DIR="$(cd "$SCRIPT_DIR/.." && pwd -P)"
REL_NAME="{{ release_name }}"
REL_VSN="{{ release_version }}"
ERTS_VSN="{{ release_erts_version }}"
CODE_LOADING_MODE="${CODE_LOADING_MODE:-embedded}"
REL_DIR="$RELEASE_ROOT_DIR/releases/$REL_VSN"
ERL_OPTS="{{ erl_opts }}"
export ESCRIPT_NAME="${ESCRIPT_NAME-$SCRIPT}"
Expand Down Expand Up @@ -86,7 +87,8 @@ set -- "$ERL_OPTS"
[ "$SYS_CONFIG" ] && set -- "$@" -config "$SYS_CONFIG"
[ "$VM_ARGS" ] && set -- "$@" -args_file "$VM_ARGS"
set -- "$@" -boot_var ERTS_LIB_DIR "$ERTS_LIB_DIR" -boot "$REL_DIR/$BOOTFILE" \
-noshell -noinput +Bd "$ARGS"
-mode "$CODE_LOADING_MODE" -noshell -noinput +Bd \
"$ARGS"

erllambda_run_hooks "$PRE_START_HOOK_DIR"

Expand Down

0 comments on commit c097f47

Please sign in to comment.