From cb09853a3ff5d9fae1cb95bd8c9c61b65c5e51e1 Mon Sep 17 00:00:00 2001 From: iizmg Date: Sun, 26 Apr 2020 12:06:27 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/application-dev.properties | 2 +- .../src/main/resources/application-prod.properties | 2 +- udf-api/udf-api-server/src/main/resources/build_prod.sh | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/udf-api/udf-api-server/src/main/resources/application-dev.properties b/udf-api/udf-api-server/src/main/resources/application-dev.properties index cae5ca7..019abf0 100644 --- a/udf-api/udf-api-server/src/main/resources/application-dev.properties +++ b/udf-api/udf-api-server/src/main/resources/application-dev.properties @@ -6,7 +6,7 @@ org.itkk.udf.starter.core.properties.guavaCacheProperties.initialCapacity=10 org.itkk.udf.starter.core.properties.guavaCacheProperties.maximumSize=100 org.itkk.udf.starter.core.properties.guavaCacheProperties.expireAfterWrite=10 # LOGGING -logging.file.name=d:/${spring.application.name}/app/application-log/${spring.application.name}_${server.port}_${spring.profiles.active}/base.log +logging.file.name=d:/app/application-log/${spring.application.name}_${server.port}_${spring.profiles.active}/base.log logging.file.max-size=100MB logging.file.max-history=31 # EXCEPTION diff --git a/udf-api/udf-api-server/src/main/resources/application-prod.properties b/udf-api/udf-api-server/src/main/resources/application-prod.properties index 6d6c9a0..834c078 100644 --- a/udf-api/udf-api-server/src/main/resources/application-prod.properties +++ b/udf-api/udf-api-server/src/main/resources/application-prod.properties @@ -6,7 +6,7 @@ org.itkk.udf.starter.core.properties.guavaCacheProperties.initialCapacity=10 org.itkk.udf.starter.core.properties.guavaCacheProperties.maximumSize=200 org.itkk.udf.starter.core.properties.guavaCacheProperties.expireAfterWrite=10 # LOGGING -logging.file.name=/usr/local/share/${spring.application.name}/app/application-log/${spring.application.name}_${server.port}_${spring.profiles.active}/base.log +logging.file.name=/usr/local/share/app/application-log/${spring.application.name}_${server.port}_${spring.profiles.active}/base.log logging.file.max-size=100MB logging.file.max-history=31 # EXCEPTION diff --git a/udf-api/udf-api-server/src/main/resources/build_prod.sh b/udf-api/udf-api-server/src/main/resources/build_prod.sh index 6af2bbd..b28f47a 100644 --- a/udf-api/udf-api-server/src/main/resources/build_prod.sh +++ b/udf-api/udf-api-server/src/main/resources/build_prod.sh @@ -19,13 +19,13 @@ echo 'stop application end' echo 'bak and copy application begin' datestr=$(date +%Y_%m_%d_%H_%M_%S) - mv /usr/local/share/${spring.application.name}/app/${project.name}/${project.name}-${project.version}.jar /usr/local/share/${spring.application.name}/app/${project.name}/${project.name}-${project.version}.jar.${datestr} - cp ${project.name}-${project.version}.jar /usr/local/share/${spring.application.name}/app/${project.name}/${project.name}-${project.version}.jar + mv /usr/local/share/app/${project.name}/${project.name}-${project.version}.jar /usr/local/share/app/${project.name}/${project.name}-${project.version}.jar.${datestr} + cp ${project.name}-${project.version}.jar /usr/local/share/app/${project.name}/${project.name}-${project.version}.jar echo 'bak and copy application end' echo 'start application begin' rm -rf nohup.out - nohup java -server -Xms1024m -Xmx1024m -XX:+UseG1GC -jar /usr/local/share/${spring.application.name}/app/${project.name}/${project.name}-${project.version}.jar --spring.profiles.active=prod & + nohup java -server -Xms1024m -Xmx1024m -XX:+UseG1GC -jar /usr/local/share/app/${project.name}/${project.name}-${project.version}.jar --spring.profiles.active=prod & echo 'start application end' echo 'check service begin'