From de7b36eab6169b7ddf9a8d60dfb895532a9b99a6 Mon Sep 17 00:00:00 2001 From: Hasan Mohammad Fawzi Date: Sat, 3 Oct 2026 09:11:26 +0200 Subject: [PATCH] fix(deploy): retry API health check during startup --- scripts/deploy.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/deploy.sh b/scripts/deploy.sh index 67cb94c..52561dd 100755 --- a/scripts/deploy.sh +++ b/scripts/deploy.sh @@ -6,4 +6,8 @@ mkdir "$release" cp -R "$source_dir"/. "$release"/ ln -sfn "$release" /srv/t31-project2/current sudo -n systemctl restart t31-project2-api -curl --fail --retry 5 http://127.0.0.1:3001/graphql?query=%7Bhealth%7D +curl --fail \ + --retry 10 \ + --retry-all-errors \ + --retry-delay 2 \ + http://127.0.0.1:3001/graphql?query=%7Bhealth%7D