diff --git a/game-web/src/main/resources/application-test.yml b/game-web/src/main/resources/application-test.yml index 9436eb5..c33fb43 100644 --- a/game-web/src/main/resources/application-test.yml +++ b/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 diff --git a/run b/run index ce86f32..83cf998 100755 --- a/run +++ b/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