Merge pull request #10606 from zhongwencool/enable-console-in-dev-mode

chore: enable console, disable file when in dev mode
This commit is contained in:
zhongwencool 2023-05-16 21:36:13 +08:00 committed by GitHub
commit d97a51ec3d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

6
dev
View File

@ -43,8 +43,8 @@ OPTIONS:
ENVIRONMENT VARIABLES:
PROFILE: Overriden by '-p|--profile' option, defaults to 'emqx'.
EMQX_NODE_NAME: Overriden by '-n|--name' or '-r|--remsh' option.
PROFILE: Overridden by '-p|--profile' option, defaults to 'emqx'.
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'.
EMQX_NODE_COOKIE: Erlang cookie, defaults to ~/.erlang.cookie
@ -56,6 +56,8 @@ if [ -n "${DEBUG:-}" ]; then
fi
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}"
PROFILE="${PROFILE:-emqx}"
FORCE_COMPILE=0