浏览代码

日志文件分隔

lizw 3 年之前
父节点
当前提交
ed270e9c41
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      yxt-yn/pre-deploy-api.sh

+ 3 - 3
yxt-yn/pre-deploy-api.sh

@@ -78,7 +78,7 @@ buildCode() {
   echo ""
 }
 
-logPath=/home/www/output/wms8_api_pre_nohup.log
+logPath=/home/www/logs/wms8_api_prod/wms8_api_prod.log
 dirPath=/home/www/deploy/wms8_api_pre/wms-biz/wms8-api/build/libs/
 serverName=wms8_api_pre
 
@@ -96,8 +96,8 @@ startServer() {
   if [ -z $pid ];then
     echo -e "$echoPrefix cd $dirPath $echoSuffix"
     cd $dirPath
-    echo -e "$echoPrefix java $JAVA_MEM_OPTS $DATABASE_OPTS $JAVA_OPTS_EXT -jar ./wms8-api-0.0.0-SNAPSHOT.jar --spring.profiles.active=global,$profiles --server.port=8999 >>$logPath 2>&1 & $echoSuffix"
-    java $JAVA_MEM_OPTS $DATABASE_OPTS $JAVA_OPTS_EXT -jar ./wms8-api-0.0.0-SNAPSHOT.jar --spring.profiles.active=global,$profiles --server.port=8999 >>$logPath 2>&1 &
+    echo -e "$echoPrefix java $JAVA_MEM_OPTS $DATABASE_OPTS $JAVA_OPTS_EXT -jar ./wms8-api-0.0.0-SNAPSHOT.jar --spring.profiles.active=global,$profiles --server.port=8999 >>/dev/null 2>&1 & $echoSuffix"
+    java $JAVA_MEM_OPTS $DATABASE_OPTS $JAVA_OPTS_EXT -jar ./wms8-api-0.0.0-SNAPSHOT.jar --spring.profiles.active=global,$profiles --server.port=8999 >>/dev/null 2>&1 &
     echo "$serverName 启动成功!"
   else
     echo "$serverName 正在运行..."