瀏覽代碼

add startup health cek

herlanS_ 3 年之前
父節點
當前提交
74a6902983
共有 3 個文件被更改,包括 5 次插入1 次删除
  1. 2 0
      .gitignore
  2. 1 1
      conf/general.ini
  3. 2 0
      src/main/kotlin/co/id/datacomsolusindo/ipphonebridge/WebSocketEventListener.kt

+ 2 - 0
.gitignore

@@ -1,8 +1,10 @@
 HELP.md
+health
 target/
 !.mvn/wrapper/maven-wrapper.jar
 !**/src/main/**
 !**/src/test/**
+*.zip
 
 ### STS ###
 .apt_generated

+ 1 - 1
conf/general.ini

@@ -1,2 +1,2 @@
 [server]
-port = 9090
+port = 9091

+ 2 - 0
src/main/kotlin/co/id/datacomsolusindo/ipphonebridge/WebSocketEventListener.kt

@@ -20,6 +20,8 @@ import java.time.format.DateTimeFormatter
 class WebSocketEventListener {
     @EventListener(ApplicationReadyEvent::class)
     fun doSomethingAfterStartup() {
+        val yourFile = File("health")
+        yourFile.createNewFile()
         logBuilder()
     }