This commit is contained in:
iizmg
2020-04-26 12:06:27 +08:00
parent 5995b3cc00
commit cb09853a3f
3 changed files with 5 additions and 5 deletions
@@ -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
@@ -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
@@ -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'