From e9a325b930543473d61d56155c39c7d835ee6c0d Mon Sep 17 00:00:00 2001 From: lens0021 Date: Sun, 29 Sep 2024 23:31:51 +0900 Subject: [PATCH] wip --- jobs/fastcgi.nomad | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/jobs/fastcgi.nomad b/jobs/fastcgi.nomad index 3d26798..60ed295 100644 --- a/jobs/fastcgi.nomad +++ b/jobs/fastcgi.nomad @@ -200,15 +200,16 @@ job "fastcgi" { port = "9000" dynamic "connect" { - for_each = !var.test ? [] : [{}] + for_each = var.test ? [{}] : [] content { sidecar_service { proxy { - upstreams { - destination_name = "mysql" - local_bind_port = 3306 - } + # Test server does not have mysql + # upstreams { + # destination_name = "mysql" + # local_bind_port = 3306 + # } upstreams { destination_name = "memcached"