|
@@ -54,7 +54,7 @@ public class DeployJob {
|
|
|
for (int i = 0; i < maxRetries; i++) {
|
|
for (int i = 0; i < maxRetries; i++) {
|
|
|
try (Socket socket = new Socket()) {
|
|
try (Socket socket = new Socket()) {
|
|
|
// 仅检测 TCP 端口是否开放,无需 curl
|
|
// 仅检测 TCP 端口是否开放,无需 curl
|
|
|
- String host = "localhost";
|
|
|
|
|
|
|
+ String host = "127.0.0.1";
|
|
|
socket.connect(new InetSocketAddress(host, appPort), 2000);
|
|
socket.connect(new InetSocketAddress(host, appPort), 2000);
|
|
|
//healthCheck = true;
|
|
//healthCheck = true;
|
|
|
} catch (IOException e) {
|
|
} catch (IOException e) {
|
|
@@ -67,7 +67,7 @@ public class DeployJob {
|
|
|
runStep(ctx, DeployStepName.HEALTH_CHECK.name(), () -> {
|
|
runStep(ctx, DeployStepName.HEALTH_CHECK.name(), () -> {
|
|
|
try (Socket socket = new Socket()) {
|
|
try (Socket socket = new Socket()) {
|
|
|
// 仅检测 TCP 端口是否开放,无需 curl
|
|
// 仅检测 TCP 端口是否开放,无需 curl
|
|
|
- String host = "localhost";
|
|
|
|
|
|
|
+ String host = "127.0.0.1";
|
|
|
socket.connect(new InetSocketAddress(host, appPort), 2000);
|
|
socket.connect(new InetSocketAddress(host, appPort), 2000);
|
|
|
//healthCheck = true;
|
|
//healthCheck = true;
|
|
|
} catch (IOException e) {
|
|
} catch (IOException e) {
|