diff --git a/allinone/entrypoint.sh b/allinone/entrypoint.sh index 9d80f83..90b659b 100644 --- a/allinone/entrypoint.sh +++ b/allinone/entrypoint.sh @@ -60,6 +60,8 @@ if [ "$(uname -m)" = "loongarch64" ]; then export SECURITY_LOGIN_CAPTCHA_ENABLED=False fi +export GIN_MODE=release + cd /opt/jumpserver || exit 1 ./jms upgrade_db || { echo -e "\033[31m Failed to change the table structure. \033[0m" diff --git a/allinone/supervisord.conf b/allinone/supervisord.conf index 2daff90..8ab5d3d 100644 --- a/allinone/supervisord.conf +++ b/allinone/supervisord.conf @@ -68,7 +68,7 @@ autorestart=true [program:chen] priority=100 -environment=GIN_MODE="release",WORK_DIR="/opt/chen",COMPONENT_NAME="chen",WISP_TRACE_PROCESS=1,EXECUTE_PROGRAM="java -Dfile.encoding=utf-8 -XX:+ExitOnOutOfMemoryError -jar /opt/chen/chen.jar --mock.enable=false --logging.level.root=ERROR",BIND_PORT=9092,LANG=en_US.UTF-8 +environment=WORK_DIR="/opt/chen",COMPONENT_NAME="chen",WISP_TRACE_PROCESS=1,EXECUTE_PROGRAM="java -Dfile.encoding=utf-8 -XX:+ExitOnOutOfMemoryError -jar /opt/chen/chen.jar --mock.enable=false --logging.level.root=ERROR",BIND_PORT=9092,LANG=en_US.UTF-8 directory=/opt/chen/ command=/usr/local/bin/wisp stdout_logfile=/dev/stdout