chore: enable console, disable file when in dev mode

This commit is contained in:
某文 2023-05-05 08:37:44 +08:00
parent a8f2ef30e6
commit d03cf26136
1 changed files with 4 additions and 2 deletions

6
dev
View File

@ -43,8 +43,8 @@ OPTIONS:
ENVIRONMENT VARIABLES: ENVIRONMENT VARIABLES:
PROFILE: Overriden by '-p|--profile' option, defaults to 'emqx'. PROFILE: Overridden by '-p|--profile' option, defaults to 'emqx'.
EMQX_NODE_NAME: Overriden by '-n|--name' or '-r|--remsh' option. EMQX_NODE_NAME: Overridden by '-n|--name' or '-r|--remsh' option.
The node name of the EMQX node. Default to emqx@127.0.0.1'. The node name of the EMQX node. Default to emqx@127.0.0.1'.
EMQX_NODE_COOKIE: Erlang cookie, defaults to ~/.erlang.cookie EMQX_NODE_COOKIE: Erlang cookie, defaults to ~/.erlang.cookie
@ -56,6 +56,8 @@ if [ -n "${DEBUG:-}" ]; then
fi fi
export HOCON_ENV_OVERRIDE_PREFIX='EMQX_' export HOCON_ENV_OVERRIDE_PREFIX='EMQX_'
export EMQX_LOG__FILE__DEFAULT__ENABLE='false'
export EMQX_LOG__CONSOLE__ENABLE='true'
EMQX_NODE_NAME="${EMQX_NODE_NAME:-emqx@127.0.0.1}" EMQX_NODE_NAME="${EMQX_NODE_NAME:-emqx@127.0.0.1}"
PROFILE="${PROFILE:-emqx}" PROFILE="${PROFILE:-emqx}"
FORCE_COMPILE=0 FORCE_COMPILE=0