build(./dev): export SCHEMA_MOD

SCHEMA_MOD is used at runtime in EMQX Erlang code
whenc loading configuration
This commit is contained in:
Zaiming (Stone) Shi 2023-05-19 18:56:12 +02:00
parent e824e1db39
commit 75c8577b6b
1 changed files with 3 additions and 4 deletions

7
dev
View File

@ -131,10 +131,10 @@ export PROFILE
case "${PROFILE}" in
emqx)
SCHEMA_MOD='emqx_conf_schema'
export SCHEMA_MOD='emqx_conf_schema'
;;
emqx-enterprise)
SCHEMA_MOD='emqx_ee_conf_schema'
export SCHEMA_MOD='emqx_ee_conf_schema'
;;
esac
@ -329,11 +329,10 @@ boot() {
copy_other_conf_files
APPS="$(apps_to_load)"
BOOT_SEQUENCE="
Apps=[${APPS}],
ok=lists:foreach(fun application:load/1, Apps),
io:format(user, \"~nLoaded ~p apps~n\", [length(Apps)]),
io:format(user, \"~nLoaded: ~p~n\", [Apps]),
{ok, _} = application:ensure_all_started(emqx_machine).
"