orztv commited on
Commit
2457f41
·
1 Parent(s): e3a4f3c
Files changed (2) hide show
  1. services.json +0 -2
  2. start.sh +8 -3
services.json CHANGED
@@ -24,9 +24,7 @@
24
  {
25
  "name": "waeb-service",
26
  "command": "echo 'Waeb service is handled by Traefik plugin'",
27
- "port": 8002,
28
  "path_prefix": "/waeb",
29
- "health_check_path": "/",
30
  "env": {},
31
  "working_dir": "/home/pn/app/waeb"
32
  }
 
24
  {
25
  "name": "waeb-service",
26
  "command": "echo 'Waeb service is handled by Traefik plugin'",
 
27
  "path_prefix": "/waeb",
 
28
  "env": {},
29
  "working_dir": "/home/pn/app/waeb"
30
  }
start.sh CHANGED
@@ -148,9 +148,14 @@ echo "$services" | while read -r service; do
148
  port=$(echo $service | jq -r '.port')
149
  health_check_path=$(echo $service | jq -r '.health_check_path')
150
 
151
- if ! check_health $port "$name" "$health_check_path"; then
152
- log "ERROR: 健康检查失败,退出程序"
153
- exit 1
 
 
 
 
 
154
  fi
155
  done
156
 
 
148
  port=$(echo $service | jq -r '.port')
149
  health_check_path=$(echo $service | jq -r '.health_check_path')
150
 
151
+ # 跳过 waeb-service 的健康检查
152
+ if [ "$name" != "waeb-service" ]; then
153
+ if ! check_health $port "$name" "$health_check_path"; then
154
+ log "ERROR: 健康检查失败,退出程序"
155
+ exit 1
156
+ fi
157
+ else
158
+ log "跳过 waeb-service 的健康检查"
159
  fi
160
  done
161