소스 검색

deploy-lims-report.sh

lizw 2 년 전
부모
커밋
5ea22c07ca
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      yxt-hn/deploy-lims-report.sh

+ 2 - 2
yxt-hn/deploy-lims-report.sh

@@ -61,8 +61,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 ./app-0.0.0-SNAPSHOT.jar --spring.profiles.active=global,$profiles --server.port=8686 >$logPath 2>&1 & $echoSuffix"
-    java $JAVA_MEM_OPTS $DATABASE_OPTS $JAVA_OPTS_EXT -jar ./app-0.0.0-SNAPSHOT.jar --spring.profiles.active=global,$profiles --server.port=8686 >$logPath 2>&1 &
+    echo -e "$echoPrefix java $JAVA_MEM_OPTS $DATABASE_OPTS $JAVA_OPTS_EXT -jar ./app-0.0.0-SNAPSHOT.jar --spring.config.location=file:./config/ --spring.profiles.active=global,$profiles --server.port=8686 >$logPath 2>&1 & $echoSuffix"
+    java $JAVA_MEM_OPTS $DATABASE_OPTS $JAVA_OPTS_EXT -jar ./app-0.0.0-SNAPSHOT.jar --spring.config.location=file:./config/ --spring.profiles.active=global,$profiles --server.port=8686 >$logPath 2>&1 &
     echo "$serverName 启动成功!"
   else
     echo "$serverName 正在运行..."