Browse Source

换新机器部署

master
nili 9 months ago
parent
commit
04ae546131
  1. 2
      game-web/src/main/resources/application-test.yml
  2. 2
      run

2
game-web/src/main/resources/application-test.yml

@ -13,7 +13,7 @@ spring:
datasource:
game:
type: com.zaxxer.hikari.HikariDataSource
jdbcUrl: jdbc:mysql://localhost:3306/game?autoReconnect=true&useUnicode=true&characterEncoding=utf-8&connectTimeout=300&socketTimeout=2000&serverTimezone=Hongkong&zeroDateTimeBehavior=convertToNull
jdbcUrl: jdbc:mysql://172.17.116.23:3306/game?autoReconnect=true&useUnicode=true&characterEncoding=utf-8&connectTimeout=300&socketTimeout=2000&serverTimezone=Hongkong&zeroDateTimeBehavior=convertToNull
username: game
password: Vd12luSjmwAXuwDH
connectionTimeout: 300

2
run

@ -17,4 +17,4 @@ rm -rf jar
mkdir jar
cp $targetdir/$jar jar/
java -server -Xmx256m -Xms256m -XX:+UseG1GC -XX:MaxGCPauseMillis=100 -XX:+UseCompressedOops -XX:+UseCompressedClassPointers -verbose:gc -Xlog:gc*:logs/gc.log:time,l,tg:filecount=7,filesize=16M -jar jar/$jar --spring.profiles.active=$profile > run.log 2>&1 & echo $! > pid
java -server -Xmx2g -Xms2g -XX:+UseG1GC -XX:MaxGCPauseMillis=100 -XX:+UseCompressedOops -XX:+UseCompressedClassPointers -verbose:gc -Xlog:gc*:logs/gc.log:time,l,tg:filecount=7,filesize=16M -jar jar/$jar --spring.profiles.active=$profile > run.log 2>&1 & echo $! > pid

Loading…
Cancel
Save