Skip to content

Commit c8aafc3

Browse files
🐯 fix start.sh 指定日志文件
1 parent 4a7793f commit c8aafc3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bin/startup.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ STARTUP_LOG="${STARTUP_LOG}application background startup command: nohup java ${
122122
#======================================================================
123123
# 执行启动命令:后台启动项目,并将日志输出到项目根目录下的logs文件夹下
124124
#======================================================================
125-
nohup java ${JAVA_OPT} -jar ${BASE_PATH}/lib/${APPLICATION_JAR} --spring.config.location=${CONFIG_DIR} > ${LOG_PATH} 2>&1 &
125+
nohup java ${JAVA_OPT} -jar ${BASE_PATH}/lib/${APPLICATION_JAR} --spring.config.location=${CONFIG_DIR} --logging.config=${CONFIG_DIR}logback.xml > ${LOG_PATH} 2>&1 &
126126

127127

128128
# 进程ID

0 commit comments

Comments
 (0)